On Fri, 14 May 2010 16:21:10 -0700, "Nick Kartsioukas"
<change+lists...@nightwind.net> said:
> I've written an rt-crontool query that will find stalled tickets with a
> "Starts" date of today, and open them (so we can take a work order that
> doesn't need to be touched for a while and have it in the system, but
> out of view until it's needed).  I want to write a scrip that will
> notify the ticket owner when such a stalled ticket is opened by the
> rt-crontool query, and I'm having a bit of trouble.

Fixed this by just having rt-crontool leave a comment on the ticket when
it opens it instead of using a scrip to do it, command now looks like
this:
rt-crontool --search RT::Search::FromSQL --search-arg "Status =
'stalled' AND Starts < 'tomorrow' AND Starts > 'NULL' " --action
RT::Action::RecordComment --template 'Started Ticket' --action
RT::Action::SetStatus --action-arg "open"

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Reply via email to