David,<br><br>Maybe it's just the way the typing looks, but it looks like you defined my $Transaction with a capitol "T", but when you specify it in the code, it has a lowercase "t". This might cause a problem. What did you see in your log file?<br>
<br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Mon, Sep 20, 2010 at 12:53 PM, 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;">
This is so weird.. would it be a bug ? Because the code certainly doesn't behave the way I would expect.<br>
<br>
I've tried several things as a global scrip as Kenneth recommended:<br>
Condition: User Defined<br>
Action: User Defined<br>
Template: Blank<br>
<br>
Custom Condition:<br>
my $Transaction = $self->TransactionObj;<br>
<br>
# Attempt #1<div class="im"><br>
return($transaction->Type = "Set" && $transaction->Field = "Queue" && $transaction->OldValue eq "queuename");<br>
<br></div>
>> This will return true only if the ticket is transferred TO queuename, it will not trigger if it is transferred away from queuename<br>
<br>
# Attempt #2<br>
return($transaction->Type = "Set" && $transaction->Field = "Queue" && $transaction->NewValue eq "queuename");<br>
<br>
>> Same result as attempt #1 (How can this be?)<br>
<br>
I've done other attempts but still in vain.<br>
<br>
This should really be trivial as I'm used to toying with RT conditions and actions but I somehow can't figure this one out.<br>
<br>
On 10-09-20 1:27 PM, Kenneth Marshall wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi David,<br>
<br>
If there is not an alternative in the wiki, it probably does not<br>
exist. (yet) At a first glance, I do not know how you would do<br>
it without triggering on every queue change, whether the functionality<br>
were built-in or not. In any case, the queue change action should be<br>
much less frequent than many other actions so the impact should not<br>
be too bad. YMMV<br>
<br>
Regards,<br>
Ken<br>
</blockquote><div><div></div><div class="h5">
<br>
<br>
On 10-09-20 1:21 PM, Kenneth Marshall wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
You need to have a global scrip that check for a queue change<br>
and if the previous queue was the queue that you want to track<br>
or react to exits.<br>
<br>
Cheers,<br>
Ken<br>
<br>
On Mon, Sep 20, 2010 at 01:19:32PM -0400, David Moreau Simard wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
We're running RT 3.8.8 and we need to fire a scrip when a ticket is<br>
transferred away from a queue (to any possible destination).<br>
<br>
The condition built into RT "On queue change" only seems to fire when a<br>
ticket is transferred in but not when a ticket is transferred out.<br>
<br>
I've tried various possible workarounds in custom conditions and even<br>
changing the stage of the transaction but to no avail.<br>
<br>
Does anyone have a clue as to what kind of condition I could use to trigger<br>
my scrip when a ticket is transferred out ?<br>
These possible conditions do not work:<br>
<br>
my $transaction = $self->TransactionObj;<br>
return($transaction->Type = "Set"&& $transaction->Field = "Queue"&&<br>
$transaction->OldValue eq "queuename");<br>
return($transaction->Type = "Set"&& $transaction->Field = "Queue"&&<br>
$transaction->NewValue ne "queuename");<br>
<br>
Thanks,<br>
<br>
- David<br>
<br>
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>
<br>
</blockquote></blockquote>
<br>
<br>
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>