<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.24">
<TITLE>RE: [rt-users] Re-occurring Task/tickets</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Just use the RT CLI from cron.</FONT>
</P>

<P><FONT SIZE=2>Example Crontab Line to open a ticket to change backup tapes every</FONT>
<BR><FONT SIZE=2>Friday at 9:00AM.</FONT>
</P>

<P><FONT SIZE=2>0 9 * * 5 /opt/rt3/bin/rt create -t ticket set status=new</FONT>
<BR><FONT SIZE=2>subject='Change Backup Tape' owner='bob' queue='Backups'</FONT>
<BR><FONT SIZE=2>requestors='bob@mycompany.com' admincc='boss@mycompany.com'</FONT>
<BR><FONT SIZE=2>priority='99' </FONT>
</P>

<P><FONT SIZE=2>Or if you have special fields, you can use the api to open tickets.</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: rt-users-bounces@lists.bestpractical.com</FONT>
<BR><FONT SIZE=2>[<A HREF="mailto:rt-users-bounces@lists.bestpractical.com">mailto:rt-users-bounces@lists.bestpractical.com</A>] On Behalf Of Tim</FONT>
<BR><FONT SIZE=2>Wilson</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, June 15, 2005 10:48 AM</FONT>
<BR><FONT SIZE=2>To: Jonathan Jesse</FONT>
<BR><FONT SIZE=2>Cc: rt-users@lists.bestpractical.com</FONT>
<BR><FONT SIZE=2>Subject: Re: [rt-users] Re-occurring Task/tickets</FONT>
</P>

<P><FONT SIZE=2>On Jun 15, 2005, at 9:12 AM, Jonathan Jesse wrote:</FONT>
</P>

<P><FONT SIZE=2>> Is there a way in RT to create Re-occurring tasks in RT?  For example,</FONT>
</P>

<P><FONT SIZE=2>> every Patch Tuesday I need to test the patches and then approve them </FONT>
<BR><FONT SIZE=2>> for release via Windows Software Update Services (WSUS).  So I would </FONT>
<BR><FONT SIZE=2>> like a task created and then due on the next Patch Tuesday.</FONT>
</P>

<P><FONT SIZE=2>This sounds like a job for cron. At the most basic level you could just</FONT>
<BR><FONT SIZE=2>have cron generate the ticket via email. That wouldn't let you set the</FONT>
<BR><FONT SIZE=2>due date though. I'm sure you could write a script that utilizes the RT</FONT>
<BR><FONT SIZE=2>API to do it and then run that from cron.</FONT>
</P>

<P><FONT SIZE=2>-Tim</FONT>
</P>

<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>Timothy Wilson</FONT>
<BR><FONT SIZE=2>Technology Integration Specialist</FONT>
<BR><FONT SIZE=2>Hopkins ISD #270, Hopkins, MN, USA</FONT>
<BR><FONT SIZE=2>ph: 952.988.4103  fax: 952.988.4311  blog: <A HREF="http://technosavvy.org" TARGET="_blank">http://technosavvy.org</A></FONT>
</P>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2><A HREF="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users" TARGET="_blank">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</A></FONT>
</P>

<P><FONT SIZE=2>Be sure to check out the RT Wiki at <A HREF="http://wiki.bestpractical.com" TARGET="_blank">http://wiki.bestpractical.com</A></FONT>
</P>

</BODY>
</HTML>