<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Mar 20, 2015, at 5:20 AM, <a href="mailto:a.smith@ldex.co.uk" class="">a.smith@ldex.co.uk</a> wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
<div style="font-family: Verdana,Geneva,sans-serif" class="">
<pre class="">Hi,
I've created a Scrip with condition "On Queue Change" but it only works when I change the queue via the GUI. I've created a little custom perl module in Actions to change the queue which works great (I'm calling it from rt-crontool), but it doesn't trigger the Scrip. Anyone any ideas what's going on?
</pre></div></div></blockquote>I've noticed that some of the things done with rt-crontool don't get recorded and therefor don't trigger scrips. This might be because of something minor missing in your custom perl module (custom action). When the custom perl module changes the queue do you see a transaction listed in the ticket history reflecting the queue change or is the queue just different on the ticket with no mention of it in the ticket history? If there's no mention of it in the ticket history it means that the transaction is not recorded. This is similar, although not quite the same as, AddCustomFieldValue( Field ..., Value ..., RecordTransaction => 0 ). I'd probably try and find a way to get the queue change to be recorded in the ticket history that way it would trigger scrips such as the "On Queue Change" one you have that works when using the GUI.</div><div><br class=""></div><div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Landon Stewart : <a href="mailto:lstewart@iweb.com" class="">lstewart@iweb.com</a></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Lead Specialist, Abuse and Security Management<br class="">Spécialiste principal, gestion des abus et sécurité<br class=""><a href="http://iweb.com" class="">http://iweb.com</a> : +1 (888) 909-4932</div><div class=""><br class=""></div></div></div></div><br class=""></body></html>