[PATCH] Additional milestone operation for sample-plugins
|Reported by:||Owned by:|
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
Note: if user has changed milestone manually, this workflow operation has no effect!
Don't forget to add
MilestoneOperation to the workflow option
[ticket] section. If there is no workflow option, the line will look
[ticket] workflow = ConfigurableTicketWorkflow,MilestoneOperation
Change History (7)
Changed 3 years ago by
Changed 2 years ago by
comment:3 Changed 2 years ago by
- Milestone changed from next-dev-1.1.x to 1.0
- Resolution set to fixed
- Status changed from new to closed