Regular Expression Match against custom field values
It would be handy to add an option to the Trac Custom Fields feature that allows a regular expression match string as a sanity check against a custom field. As some fields require the flexibility of text input, but within certain parameters that a SELECT field doesn't offer, this could be very handy. The match string would just have to evaluate to true if the field works.
I did a few searches and didn't see anything like this — please enlighten me if otherwise. I could attempt to look at a patch if there is interest, though I haven't worked with Python before.
Suggestion for implementation:
[ticket-custom]
test_date_field = text
test_date_field.label = Test a Date
test_date_field.value =
test_date_field.match = /\d{4}-\d{2}-\d{2}/
Change History
(8)
Owner: |
changed from Jonas Borgström to Alec Thomas
|
Milestone: |
→ 0.12
|
Version: |
0.10rc1 → devel
|
Keywords: |
ticket match removed
|
Priority: |
normal → highest
|
Priority: |
highest → normal
|
Milestone: |
next-major-0.1X → unscheduled
|
Owner: |
Alec Thomas removed
|
Trac will soon have customisable WorkFlow which will allow this kind of feature.