<div>Thank you for the advise Toby. </div>
<div> </div>
<div>Though I really do not have an idea on how to fire "On Status Change"</div>
<div> </div>
<div>I plan to use it on a cron job in Perl as suggested earlier. If there's a way to run the "On Status Change" scrip on cron job, that will be good. If not, I need to check other methods.</div>
<div> </div>
<div> </div>
<div> </div>
<div>#!/usr/bin/perl</div>
<div>my $cmd = '/usr/bin/rt list  ';<br>my $qry = $cmd . qq/\"priority = '199' AND due <= 'today'\"/;<br>my @res = `$qry`;<br>for (@res) {<br>   chomp;<br>    my $tic_sub = `/bin/echo $_ | /bin/cut -f2 -d":"`;<br>
    my $tic_num = `/bin/echo $_ | /bin/cut -f1 -d":"`;<br>    system ("/usr/bin/rt edit 'ticket/$tic_num' set status=open");<br>    # put here how to fire up on Status Change Scrip   </div>
<div>}</div>
<div> </div>
<div> </div>
<div>Date: Mon, 27 Jul 2009 17:30:50 +0100<br>From: Toby Darling <<a href="mailto:darling@ccdc.cam.ac.uk">darling@ccdc.cam.ac.uk</a>><br>Subject: Re: [rt-users] Auto-open Resolved Ticket<br>To: "<a href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a>"<br>
       <<a href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a>><br>Message-ID:<br>       <<a href="mailto:BBE4F13B964A4049BA644235410510BE0804190AE8@mail01.ccdc.cam.ac.uk">BBE4F13B964A4049BA644235410510BE0804190AE8@mail01.ccdc.cam.ac.uk</a>><br>
Content-Type: text/plain; charset="us-ascii"</div>
<div>Hi Roehl</div>
<div>> Please confirm, if I understand your method correctly.<br>><br>> 1. Instead of resolving the ticket, after getting my tasks done, put in<br>> on stalled and set 'Due date' to next month.</div>
<div>Correct.</div>
<div>> 2. the cron job will re-open this ticket after a month.</div>
<div>More accurately, it will reopen those tickets with due dates on, or before, 'today'.</div>
<div>> If the ticket is re-open, will it send out notification?</div>
<div>Not by default, I don't think, but you can create a scrip to fire On Status Change.</div>
<div>Cheers<br>Toby</div>