wiki:ScheduledWorkflowPlugin

Scheduled workflow

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

You might want to consider invoking it from a cronjob.

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.

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."

Recent Changes

14846 by dkgdkg on 2015-07-28 22:56:37
explicitly licensed ScheduledWorkflowPlugin with 2-clause BSD (Closes #12461)
12277 by dkgdkg on 2012-11-01 22:11:34
change the trac-admin invocation a little bit to use a subcommand syntax
12276 by dkgdkg on 2012-11-01 22:11:27
first version of ScheduledWorkflow plugin
(more)

Author/Contributors

Author: dkgdkg
Maintainer: Daniel Kahn Gillmor
Contributors:

Last modified 9 months ago Last modified on Nov 17, 2015, 2:36:21 PM