Changes between Version 3 and Version 4 of PendingTicketPlugin


Ignore:
Timestamp:
Aug 5, 2008, 6:18:16 PM (16 years ago)
Author:
Daniel Atallah
Comment:

Update for 0.11 changes

Legend:

Unmodified
Added
Removed
Modified
  • PendingTicketPlugin

    v3 v4  
    2424
    2525== Example ==
     26
     27=== For Trac 0.11 ===
     28
     29If upgrading from 0.10, you'll need to convert the data using the `migrate_pending_attrib_to_status.py /path/to/tracenv` script which is included.
     30
     31Set up your ticket workflow to include a 'pending' status (see the following example):
     32{{{
     33[ticket-workflow]
     34pending = new -> pending
     35pending.permissions = TICKET_MODIFY
     36}}}
     37
     38Specify a status for tickets to be moved to
     39{{{
     40[ticket]
     41pending_removal_status = new
     42}}}
     43
     44Install the !PendingStatusRemovePlugin to have the pending flag automatically removed when the reporter responds.
     45{{{
     46<CHECKOUT THE SOURCE AND GO TO THE 0.11/removependingplugin DIRECTORY>
     47setup.py bdist_egg
     48cp dist/RemovePendingStatusPlugin-x-y-z-py2.4.egg $TRAC_ENV/plugins
     49}}}
     50You'll also need to enable the Plugin in your `trac.ini` file:
     51{{{
     52[components]
     53removepending.* = enabled
     54}}}
     55
     56To enable the automatic closing of tickets, you'll need to set up a script to be run by cron.  Mine looks like this:[[BR]]
     57{{{
     58#! /bin/bash
     59
     60TRAC_ENV=/somewhere/trac/project
     61SCRIPT_DIR=$TRAC_ENV/localscripts
     62LOGFILE=$SCRIPT_DIR/close_old_pending.log
     63
     64date >> $LOGFILE
     65
     66python $SCRIPT_DIR/close_old_pending.py -p $TRAC_ENV -d 14 >> $LOGFILE 2>&1
     67}}}
     68
     69=== For Trac 0.10 ===
    2670
    2771Add a custom ticket field to your `trac.ini` file: