Edgewall Software
Modify

Opened 18 years ago

Last modified 10 years ago

#3785 new enhancement

Regular Expression Match against custom field values

Reported by: nmelnick@… Owned by:
Priority: normal Milestone: unscheduled
Component: ticket system Version: devel
Severity: normal Keywords: custom regular expression regex
Cc: manolo.email@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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}/

Attachments (0)

Change History (8)

comment:1 by Alec Thomas, 18 years ago

Owner: changed from Jonas Borgström to Alec Thomas

Trac will soon have customisable WorkFlow which will allow this kind of feature.

comment:2 by Alec Thomas, 18 years ago

Milestone: 0.12
Version: 0.10rc1devel

comment:3 by sid, 18 years ago

Keywords: ticket match removed

comment:4 by anonymous, 17 years ago

Priority: normalhighest

comment:5 by Christian Boos, 17 years ago

Priority: highestnormal

comment:6 by manolo.email@…, 15 years ago

Cc: manolo.email@… added

comment:7 by Remy Blank, 14 years ago

Milestone: next-major-0.1Xunscheduled

comment:8 by Ryan J Ollos, 10 years ago

Owner: Alec Thomas removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.