[PATCH] Additional milestone operation for sample-plugins
|Reported by:||framay <franz.mayer@…>||Owned by:||framay <franz.mayer@…>|
Add MilestoneOperation sample plugin, a workflow operation which assign a ticket to a milestone for some specific resolution values
We have following workflow in my company:
If a ticket is rejected (which means not fixed / implemented) it will be moved to a milestone 'rejected'. Thus we have clean milestones with only implemented features / solved bug fixes.
It would be nice, if this could be parametrized using Trac workflow. I have implemented this in attached file MilestoneOperation.py. Maybe the attached file could be committed in sample-plugins, when there are no further comments regarding better / nicer implementation.
Sets milestone for specific status.
[ticket-workflow] resolve.operations = set_resolution,set_milestone resolve.milestone = invalid,wontfix,duplicate,worksforme->rejected
When setting status to duplicate the milestone will automaitcally change to rejected.
Note: if user has changed milestone manually, this workflow operation has no effect!
Don't forget to add MilestoneOperation to the workflow option in [ticket] section. If there is no workflow option, the line will look like this:
[ticket] workflow = ConfigurableTicketWorkflow,MilestoneOperation
Change History (7)
Changed 22 months ago by framay <franz.mayer@…>
Changed 15 months ago by framay <franz.mayer@…>
comment:3 Changed 15 months ago by cboos
- Milestone changed from next-dev-1.1.x to 1.0
- Resolution set to fixed
- Status changed from new to closed