<div>Hi Toby,</div>
<div> </div>
<div>Thanks for this. <br></div>
<div>Please confirm, if I understand your method correctly. </div>
<div> </div>
<div>1. Instead of resolving the ticket, after getting my tasks done, put in on stalled and set 'Due date' to next month.</div>
<div>2. the cron job will re-open this ticket after a month. </div>
<div> </div>
<div>If the ticket is re-open, will it send out notification? </div>
<div> </div>
<div>im doing the rt-list -i "status = 'stalled' AND due <= 'today'" </div>
<div>on a command line but it's asking me for a password.  </div>
<div>is my syntax correct?</div>
<div> </div>
<div> </div>
<div>Thanks!</div>
<div>Roehl</div>
<div> </div>
<div><br> </div>
<div class="gmail_quote">On Fri, Jul 24, 2009 at 5:08 AM, Toby Darling <span dir="ltr"><<a href="mailto:darling@ccdc.cam.ac.uk">darling@ccdc.cam.ac.uk</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Roehl<br>
<div class="im"><br>> - I resolved a ticket Subject: Windows Patches or Subject: get and<br>> renew certificates<br>> - I'll do it again after a month.<br>> - RT will re-open this ticket after a month.<br>
<br></div>I use the Due date field with a stalled status, and have a daily cron job:<br><br>#!/usr/bin/perl<br>my $cmd = '/usr/bin/rt list -i ';<br>my $qry = $cmd . qq/\"status = 'stalled' AND due <= 'today'\"/;<br>
my @res = `$qry`;<br>for (@res) {<br>   chomp;<br>    system ("/usr/bin/rt edit $_ set status=open");<br>}<br><br>I'm sure someone will be along shortly with an rt_crontool solution, or something RESTful.<br>
<br>Cheers<br>Toby<br><br><br>LEGAL NOTICE<br>Unless expressly stated otherwise, information contained in this<br>message is confidential. If this message is not intended for you,<br>please inform <a href="mailto:postmaster@ccdc.cam.ac.uk">postmaster@ccdc.cam.ac.uk</a> and delete the message.<br>
The Cambridge Crystallographic Data Centre is a company Limited<br>by Guarantee and a Registered Charity.<br>Registered in England No. 2155347 Registered Charity No. 800579<br>Registered office 12 Union Road, Cambridge CB2 1EZ.<br>
</blockquote></div><br>