[rt-users] [contrib] rt-autostart
Robie Basak
robie at principle.co.uk
Tue Aug 27 12:29:52 EDT 2002
This is a script which can be cronned to automatically unstall tickets
after a set date.
It requires a trivial patch I posted earlier to rt-devel which fixes a
typo so that LimitDate with Starts works and allows QUOTEVALUE in
RT::Tickets->Limit (so then I can compare two dates directly in a
query).
To use it, set up the cronjob, then when you want a ticket to unstall
later just set the start date and then stall the ticket. The cronjob
will unstall it the next time it runs and the start date has passed,
unless you've added transactions to the ticket (which means generally
modified it in any way) since the start date passed, in which case it'll
leave it alone.
The logic is: open the ticket if it is stalled, it has a starts date
set, the starts date is in the past and the last updated date is before
the starts date.
This seems to do what I want, anyway :)
Robie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rt-autostart
Type: text/x-perl
Size: 2545 bytes
Desc:
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20020827/c18d8946/attachment.pl>
More information about the rt-users
mailing list