[rt-users] On Queue Change, what queue scrip acts?

Stephen Turner sturner at MIT.EDU
Thu Mar 6 09:50:48 EST 2008


At Wednesday 3/5/2008 11:05 PM, lgrella wrote:

>I am trying to set up scrips for my queues so that when a queue is changed,
>the owner in the new queue is set to a default queue owner for that new
>queue. It is not working. I have some questions about when the scrips are
>run....When the onQueueChange scrip is run, is it run from the old queue's
>scrip or the new queue's scrip? I am writing it as if it is run in the new
>queue - i.e it was in queue A and now it switches to queue B. I want the
>scrip to run in queue B that will change it to a default owner for queue B.
>
>Does this make sense?
>
>The code I use is the same code I used to set a default owner on create, but
>commented out a few lines.
>This is the code that I have in the custom action clean up code for the new
>queue (queue B):


The scrip fires on the new queue, so you're on the right track.

Did you remember to set the action to 'User defined'? Do you see 
anything in the RT log from your debug statements?

Steve 




More information about the rt-users mailing list