Basic ticket validation for Trac. The validation is based on the state that the ticket is in so you can specify different requirements for different steps in the workflow.
Currently you can only specify required fields.
Download and Source
Say you require the 'actual' field to be filled out once the ticket has been completed and the 'estimate' field once the ticket has been accepted. You can configure this through the admin page or edit the trac.ini file. The section in trac.ini would look something like this
[ticketvalidator] done.required = actual,estimate accepted.required = estimate
- Clarified license as 3-Clause BSD and added license text to source code. Change made with permission of original author, Max Stewart (superafroman).
(0.2dev) Moved ITemplateProvider implementation to the TicketValidatorAdminPanelProvider class. Removed empty htdocs directory and empty css file. Removed intermediate directory src. Added setup.cfg.
Added support for validating new tickets (i.e action is not defined in req.args)
Updated to re-validate even if status hasn't changed.
- blacklist.patch (1.2 kB) -
Patch to Blacklist values for states with state.blacklist=value,value2,…, added by anonymous on 04/19/11 10:26:14.