[rt-users] A few scrip questions [sort of SOLVED]

Nick Kartsioukas change+lists.rt at nightwind.net
Wed Jun 23 15:37:45 EDT 2010


On Fri, 14 May 2010 16:21:10 -0700, "Nick Kartsioukas"
<change+lists.rt at 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"



More information about the rt-users mailing list