This script provides a new subcommand for
trac-admin that makes it easy to automatically transition tickets after a certain period of time.
trac-admin subcommand is
transition, and you can run it with either
check (to see what's affected) or
do (to carry out a transition).
Trac [/srv/trac]> transition check new 14 13: rotate does not work losslessly with png files (new) Trac [/srv/trac]> transition do new idle 14 robot "ticket has been new for two weeks; auto-transitioning to idle" Trac [/srv/trac]>
You might want to consider invoking it from a cronjob.
If you have any issues, create a new ticket.
1 / 1
Download the zipped source from here.
Add the file
scheduledworkflow.py to your
Add the following to your crontab:
0 0 * * * trac-admin /srv/tracenv transition do new idle 14 automatic "This ticket has been new for 2 weeks; marking as idle."
- 14846 by dkgdkg on 2015-07-28 20:56:37
explicitly licensed ScheduledWorkflowPlugin with 2-clause BSD (Closes #12461)
- 12277 by dkgdkg on 2012-11-01 21:11:34
change the trac-admin invocation a little bit to use a subcommand syntax
- 12276 by dkgdkg on 2012-11-01 21:11:27
first version of ScheduledWorkflow plugin