<div dir="ltr">Hello,<div><br></div><div>I thought this would be kinda easy but it's proving to be quite difficult.  </div><div><br></div><div>My problem is 2 parts:</div><div><br></div><div><b>1) </b></div><div>I've tried writing a custom condition for rt-crontool to find tickets that were:</div>

<div>- last updated by the owner</div><div>- not updated in X hours (like 24 hours)</div><div><br></div><div style>Since rt-crontool doesn't know who __CurrentOwner__ is it makes it hard to use a query like I would in the RT Interface.  Presumably there might be some way to see if the last update was a privileged RT user but was done more than X hours ago.  </div>

<div style><br></div><div style><font face="courier new, monospace">Queue = 'Investigations' <br></font></div><div style><font face="courier new, monospace">AND Status = 'open' </font></div><div style><font face="courier new, monospace">AND LastUpdatedBy = '__CurrentUser__' </font></div>

<div style><font face="courier new, monospace">AND Owner = '__CurrentUser__' </font></div><div style><font face="courier new, monospace">AND LastUpdated < '24 hours ago'</font><br></div><div><div><br></div>

<div style>Basically I want to nag customers to update the ticket if they haven't updated it after 24 hours and then 36 hours.  If they still haven't updated it after 48 hours I want do something like set the priority to 100 or something so I can see what tickets are not being updated so their accounts can be suspended or something in accordance with our policies.</div>

<div style><br></div><div style><b>2) </b></div><div style>I also need help understanding the usage for the SendEmail action.  I read an rt-users mailinglist post from a while ago about it but there's a mix of other stuff about RecordComment in there etc which doesn't really apply here.  I've also been reading <a href="http://bestpractical.com/docs/rt/4.0/RT/Action/SendEmail.html">http://bestpractical.com/docs/rt/4.0/RT/Action/SendEmail.html</a> but I'm unclear on what the Blue bolded sections are - are those methods?  How does one use this in another Action script?  Examples would be awesome if any exist.</div>

<div style><br></div>-- <br><div>Landon Stewart <LandonStewart@Gmail.com><br></div>
</div></div>