74 | | === For Trac 0.10 |
75 | | |
76 | | Add a custom ticket field to your `trac.ini` file: |
77 | | {{{#!ini |
78 | | [ticket-custom] |
79 | | pending = checkbox |
80 | | pending.label = Pending |
81 | | pending.value = 0 |
82 | | }}} |
83 | | |
84 | | If you're using the SimpleTicketPlugin, you may want to hide it: |
85 | | {{{#!ini |
86 | | [simpleticket] |
87 | | hide = pending |
88 | | }}} |
89 | | |
90 | | Install the !PendingStatusRemovePlugin to have the pending flag automatically removed when the reporter responds: |
91 | | {{{#!sh |
92 | | <CHECKOUT THE SOURCE AND GO TO THE 0.10/removependingplugin DIRECTORY> |
93 | | setup.py bdist_egg |
94 | | cp dist/RemovePendingStatusPlugin-x-y-z-py2.4.egg $TRAC_ENV/plugins |
95 | | }}} |
96 | | |
97 | | You will also need to enable the Plugin in your `trac.ini` file: |
98 | | |
99 | | {{{#!ini |
100 | | [components] |
101 | | removepending.* = enabled |
102 | | }}} |
103 | | |
104 | | To enable the automatic closing of tickets, you will need to set up a script to be run by cron. Example: |
105 | | |
106 | | {{{#!sh |
107 | | #! /bin/bash |
108 | | |
109 | | TRAC_ENV=/somewhere/trac/project |
110 | | SCRIPT_DIR=$TRAC_ENV/localscripts |
111 | | LOGFILE=$SCRIPT_DIR/close_old_pending.log |
112 | | TRAC_URL=http://trac.mysite.com/project |
113 | | |
114 | | date >> $LOGFILE |
115 | | |
116 | | python $SCRIPT_DIR/close_old_pending.py -p $TRAC_ENV -d 14 -s $TRAC_URL >> $LOGFILE 2>&1 |
117 | | }}} |
118 | | |