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

Ruslan U. Zakirov cubic at acronis.ru
Fri Oct 31 10:11:28 EST 2003


BJ Blanchard wrote:
> Hi,
> 
> The custom scrip conditions in RT 3 is very powerfull, but I cannot
> figure out how to trigger an action on a change to a "custom field".
> 
> I've tried this to no avail:
> 
> if ($self->TransactionObj->Field eq "NameOfCustomField") {
>   return(1);
> } else {
>   return(undef);
> }
Look at this:
mysql> select distinct Type,Field from Transactions;
...
So you must use CustomFieldId instead of Name.
To get ID from Name you can create new CF object and load it by name and 
Tickets's queue.
	Good Luck. Ruslan.
> 
> What I really want to do is not just trigger on *any* change but trigger
> on specific values of custom fields.  
> 
> Eg:  If (( custom field modified ) and ( custom field value =
> "somevalue")) return (1);
> 
> Any ideas?
> 
> -Bob
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm





More information about the rt-users mailing list