[rt-users] Problem with OnQueueChange scrip

Forrest Blount forrest at itasoftware.com
Tue Jul 31 11:57:32 EDT 2007


sorry-- yes,

$self->TransactionObj->NewValue eq "CCEng" looks good to me.


Mathew Snyder wrote:
> How will that know which Queue a ticket is being moved to?  Would I still use
> the $self->TransactionObj->NewValue eq "CCEng" conditional?
>
> Keep up with me and what I'm up to: http://theillien.blogspot.com
>
>
> Forrest Blount wrote:
>   
>> You don't want $self->TransactionObj->Type eq "Queue" because Type can't
>> be set to Queue.
>>
>> You want $self->TransactionObj->Type eq "Set"
>> &            $self->TransactionObj->Field eq "Queue"
>>
>> and that should work, i think.
>>
>> f
>>
>> On 7/31/07, *Mathew Snyder* <theillien at yahoo.com
>> <mailto:theillien at yahoo.com>> wrote:
>>
>>     I've created my template under Global.  I've also set under Global
>>     the scrip with:
>>     Condition: On Queue Change
>>     Action: Notify Requestors
>>     Template: Global template: MoveToCCEng
>>     Stage: TransactionCreate
>>
>>     I need this to fire off only when a ticket is moved to the CCEng
>>     queue.  I'm
>>     guessing that I need a Custom Condition which will check that the
>>     queue is
>>     actually the one in question.  However, I don't think I know what I
>>     should be
>>     making it look like.
>>
>>     Perhaps
>>     if (($self->TransactionObj->Type eq "Queue") and
>>     ($self->TransactionObj->NewValue eq "CCEng")) {
>>             return 1;
>>     }else{
>>             return undef;
>>     }
>>     is what I'm looking for?  But that doesn't work either.
>>
>>     Can someone shed some light please?
>>
>>     Thanks,
>>     Mathew
>>     --
>>     Keep up with me and what I'm up to: http://theillien.blogspot.com
>>     _______________________________________________
>>     http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>>     <http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users>
>>
>>     Community help: http://wiki.bestpractical.com
>>     Commercial support: sales at bestpractical.com
>>     <mailto:sales at bestpractical.com>
>>
>>
>>     Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>>     Buy a copy at http://rtbook.bestpractical.com
>>
>>
>>     
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
>   




More information about the rt-users mailing list