<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 7, 2013 at 2:24 PM, Ruslan Zakirov <span dir="ltr"><<a href="mailto:ruz@bestpractical.com" target="_blank">ruz@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div><div class="h5">
<br><br><div class="gmail_quote">On Tue, May 7, 2013 at 1:25 PM, kjcsb <span dir="ltr"><<a href="mailto:kjcsb@xnet.co.nz" target="_blank">kjcsb@xnet.co.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I would like to configure RT to automatically change the status of a ticket<br>
in certain cases. An example of this would be when a ticket is set to<br>
"waiting on customer" response. After a certain period without a response<br>
(ideally working days rather than calendar days) we would like to resolve<br>
the ticket. I've been unable to find the right term to search on to find the<br>
answer to this. Any help appreciated.<br>
<br>
<br>
</blockquote></div><br></div></div>For such things you use rt-crontool. Start with search that uses TicketSQL, for example "LastUpdated < '10 days ago' AND Status = 'waiting on customer'". Figure out how to use SetStatus action.</div>
</div></blockquote><div><br></div><div style>Ramon Kagan wrote a RT::Action::SetStatus module <a href="http://lists.bestpractical.com/pipermail/rt-users/2005-February/028827.html">http://lists.bestpractical.com/pipermail/rt-users/2005-February/028827.html</a></div>
<div style><br></div><div style>You can place it at /opt/rt3/local/lib/RT/Action/SetStatus.pm and use it. You may have to run mkdir -p /opt/rt3/local/lib/RT/Action</div><div style><br></div><div style>YMMV.</div><div style>
<br></div><div style><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<div class="gmail_extra"><br></div><div class="gmail_extra">When above is ready then you can do two things:</div><div class="gmail_extra"><br></div><div class="gmail_extra">1) use bash or any other programming language to calculate time span and execute rt-crontool. What I mean is that if your script is executed on Monday and you want 5 days time span then your code generates '7 days ago' to compensate weekend.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">2) write RT's custom condition that does additional date checks using pretty much the same logic as above solution.<span class=""><font color="#888888"><br clear="all">
<div><br></div>-- <br>Best regards, Ruslan.
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu">pgp.mit.edu</a><br>A: Because it messes up the order in which people normally read text.<br>
Q: Why is top-posting such a bad thing?<br><br>
</div></div>