Re: [rt-users] Scrip check multiple fields

2016-06-04 Thread Emmanuel Lacour
Le 03/06/2016 à 21:31, maks a écrit :
> Hello,
> 
> How can I
> also check which queue the ticket is currently in within the same condition?
> 

return 0 unless $self->TicketObj->QueueObj->Name eq 'blah';
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] Scrip check multiple fields

2016-06-03 Thread maks

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
m...@activetelephones.com

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016