wiki:ScheduledWorkflowPlugin

Schedule automatic workflow on tickets

Description

This script provides a new subcommand for trac-admin that makes it easy to automatically transition tickets after a certain period of time.

The new 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]>

As an example, 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."

Bugs/Feature Requests

Existing bugs and feature requests for ScheduledWorkflowPlugin are here.

If you have any issues, create a new ticket.

task

1 / 1

Download

Download the zipped source from here.

Source

You can check out ScheduledWorkflowPlugin from here using Subversion, or browse the source with Trac.

Installation

Add the file scheduledworkflow.py to your plugins directory.

Recent Changes

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
(more)

Author/Contributors

Author: dkgdkg
Maintainer: Daniel Kahn Gillmor
Contributors:

Last modified 2 years ago Last modified on Apr 21, 2022, 2:32:13 PM