David,<br><br>I could be wrong, but I think it is a matter of timing. My experience with trying to stop a transaction in RT is that you're always a little late in the process. Once RT has recorded that a ticket <i>has</i> changed Queues, I believe it is already too late. You can change it back, but you can't stop it. My advice would be to check the transaction for a Queue change <b><i>FROM</i></b> the Queue you don't want to change from and just change it back.<br>
We had a situation where someone was sending emails to a group when they didn't know where to send it. We wrote a scrip for that Queue that looked at the <i>from</i> email address and just sent the ticket to the correct Queue.<br>
Sorry I can't be of more help.<br><br>Kenn<br><br><div class="gmail_quote">On Tue, Sep 21, 2010 at 8:05 AM, David Moreau Simard <span dir="ltr"><<a href="mailto:fooraide@gmail.com">fooraide@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> I had to re-type part of the code to post it to the mailing list and the $Transaction / $transaction came from there, it is actually fine in the custom condition:<br>
<br>
my $Transaction = $self->TransactionObj;<br>
<br>
return($Transaction->Type eq "Set" && $Transaction->Field eq "Queue" && $Transaction->OldValue eq "queuename");<br>
<br>
It could had been a nice find though..<br>
<br>
My error logs do not show anything relevant, no compilation errors or anything.<div class="im"><br>
<br>
> David,<br>
><br>
> Maybe it's just the way the typing looks, but it looks like you defined my<br>
> $Transaction with a capitol "T", but when you specify it in the code, it has<br>
> a lowercase "t". This might cause a problem. What did you see in your log<br>
> file?<br>
><br>
> Kenn<br>
> LBNL<br>
<br></div><div><div></div><div class="h5">
RT Training in Washington DC, USA on Oct 25 & 26 2010<br>
Last one this year -- Learn how to get the most out of RT!<br>
</div></div></blockquote></div><br>