Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Devel

RecordComment syntax

 

 

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded


Andy.Werner at amxinc

Apr 23, 2008, 7:31 AM

Post #1 of 2 (273 views)
Permalink
RecordComment syntax

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::Notify --template 18 -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: ...@....com (fill in email address here)

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


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

Andy Werner


ruz at bestpractical

Apr 23, 2008, 6:30 PM

Post #2 of 2 (257 views)
Permalink
Re: RecordComment syntax [In reply to]

I think you need to specify --action-arg option to define who you want
to notify. Possible values are Owner, Cc, AdminCc, Requestor and
OtherRecipients. You can use comma separated list as well.

2008/4/23 Andy Werner <Andy.Werner[at]amxinc.com>:
>
>
>
>
> 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::Notify --template 18 –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: …@....com (fill in email address here)
>
>
>
> The ticket {$Ticket->id} is only being used for testing.
>
>
>
>
>
> Any help on this would be awesome as I have been staring at this for a long
> time.
>
>
>
> Andy Werner
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>
>



--
Best regards, Ruslan.
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.