[rt-users] RT 3.0.6 - Custom Scrip Conditions on Custom Field changes

Ruslan U. Zakirov cubic at acronis.ru
Fri Oct 31 14:02:48 EST 2003


BJ Blanchard wrote:
> Thanks Ruslan for pointing me in the right direction.
> 
> Just for others to see, this is what I got working:
> 
> if (($self->TransactionObj->Type eq "CustomField") and
If you have upgraded from 2.x to 3.x then Type could be 'Keyword' also.
>  ($self->TransactionObj->Field eq 2) and
>  ($self->TransactionObj->NewValue eq "Critical Maintenance")) {
>   return(1);
> } else {
>   return(undef);
> }
I recommend you to avoid usage of ID.
> 
> NOTE:  I'm using the CustomFieldId of "2" above since I didn't have time
> to implement the lookup by name.
> 
> If anyone wants to contribute that part, that would be great.
> 
> Now I'm looking to build a custom scrip action which adds a ticket
> watcher as a "Cc".
Why? 'Notify Requestors, Ccs and AdminCcs' - it's all watchers in RT.
> 
> There are no methods that I can see under TicketObj for doing this.
> 
> Anyone?
Look here:
select * from ScripActions where ExecModule LIKE 'Notify%';
> 
> 




More information about the rt-users mailing list