[rt-users] Open Overdue Tickets

ben at atomicmatrix.net ben at atomicmatrix.net
Thu Dec 9 10:14:14 EST 2004


I use the attached script called from cron every 15 minutes.

	-=| Ben

-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Tony Bowden
Sent: Sunday, December 05, 2004 5:40 AM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] Open Overdue Tickets


I'd like to write a simple cron job to auto-set all overdue stalled
tickets back to Open.

This seems like it should be fairly simple, but I'm falling down
somewhat.

I would expect this to be something like:

        rt-crontool --search RT::Search::ActiveTicketsInQueue \
            --search-arg support \
            --condition RT::Condition::Overdue \
            --condition-arg \
            --action RT::Action::SetStatus \
            --action-arg open

However, there is no RT::Action::SetStatus.

Now, I believe that this would be fairly trivial to write (very much
like RT::Action::SetPriority), except I find it difficult to believe
that there isn't something shipped with RT that does this, leading me to
think I must be looking in the wrong place.

Do I really need to write RT::Action::SetStatus, or should I be doing
something else?

Tony

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT wiki at http://wiki.bestpractical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check-due-dates.pl
Type: application/octet-stream
Size: 1246 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20041209/ebda2914/attachment.obj>


More information about the rt-users mailing list