[rt-users] Possible to stop rt-crontool from logging to ticket?

Kenneth Marshall ktm at rice.edu
Fri Feb 4 12:07:33 EST 2011


On Fri, Feb 04, 2011 at 10:31:05AM -0600, John Alberts wrote:
> I have setup some cronjobs to use rt-crontool to email reminders to a
> group email address about open tickets.  This works great, but every
> time it sends an email, it logs it in the ticket history.  This makes
> the ticket history quite messy.  Is there any way to tell rt-crontool
> not to log to the ticket history, or possibly specify something in the
> template I'm using?
> 
>  
> 
> Here's an example of one of the cronjobs I'm using:
> 
> 0 3 * * * /opt/rt3/bin/rt-crontool --search RT::Search::FromSQL
> --search-arg "Owner = 'nobody' AND Created < '2 days ago' AND Created >
> '3 days ago' AND Status != 'resolved' AND Status != 'rejected' AND
> Status != 'deleted'"  --action RT::Action::RecordComment --template
> 'Unowned tickets2'
> 
>  
> 
> Also, where can I get a list of supported actions for rt-crontool?  I
> couldn't find any documentation for that.
> 
>  
> 
> Thanks
> 
> ----------
> 
> John Alberts
> 
> Hosted Services Systems Administrator
> 
> Ex Libris (USA) Inc.
> 1350 E. Touhy Ave.  Suite 200 East
> Des Plaines, IL 60018

Hi John,

The --action you are using stores the information in the History.
Have you considered making the appropriate dashboard and then using
the Email Dashboards function to send the appropriate reminders.
This should avoid having to add to the History. Alternatively, you
could send the mail from outside of RT and just use the  RT CLI to
gather the information for your mail message.

Cheers,
Ken



More information about the rt-users mailing list