[rt-users] Scrip check multiple fields

maks maks at activetelephones.com
Fri Jun 3 15:31:59 EDT 2016


Hello,

Would someone be kind enough to provide me with an example of checking 
against multiple fields in a scrip custom condition?

For example the below scrip checks if Owner is being set to 9. How can I 
also check which queue the ticket is currently in within the same condition?

return 0 unless $self->TransactionObj->Type eq "Set";
return 0 unless $self->TransactionObj->Field eq "Owner";

return 0 unless $self->TransactionObj->NewValue eq "9";
return 1;


Thanks,

*--Maks*

Ext 201
P. 203-876-7978 - F. 203-876-2810
maks at activetelephones.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20160603/df9a85fd/attachment.htm>


More information about the rt-users mailing list