[Rt-devel] rt-crontool RecordComment won't work

Andy Werner Andy.Werner at amxinc.com
Fri Apr 25 14:36:58 EDT 2008


I am trying to set up a cron job that records a comment on certain tickets based on an SQL search.  The comment will be based on a template.  So far the script won't work.  I have been trying to use a simple job so far to see if this will work on a single ticket.  It appears that the cron jobs are running now as I am getting verbose output.

Here is the job:
/home/amxrt/rt3/bin/rt-crontool --search RT::Search::FromSQL --search-arg "id = '1406'" --action RT::Action::RecordComment -template 'test' --verbose

Here is the output of the job:

1406: Using transaction #48871...Action prepared...

The template is the same template in the example for TimedNotifications:

Subject: {$Ticket->id} test.

RT-Send-Cc: ... at ....com (fill in email address here)

The ticket {$Ticket->id} is only being used for testing.

I've tried other actions like SetPriority that seem to work, but this action just won't work for me.  It seems like it is not getting to the commit stage of the action.

Any help on this would be awesome as I have been staring at this for a long time.

Andy Werner

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/rt-devel/attachments/20080425/c99a9d3d/attachment.htm 


More information about the Rt-devel mailing list