I’m trying to write a trigger for a particular custom field, as
apparently I don’t understand something. I’d appreciate any
enlightenment anyone can offer, pointers to docs I should read, etc.
I have a CustomField called “Port Completion”. When this CustomField
is set to “Ported and Routed”, I want the call assigned to myself.
This CustomField appears to be Field 15, given that the URL ends in
I’ve created a scrip for my test queue with the following settings:
Description: assign owner on port completion
Condition: user defined
Action: user defined
Template: Global template: Transaction
My custom condition is taken straight from the example.
( $self->TransactionObj->Type eq “CustomField”
&& $self->TransactionObj->Field == 15 )
|| $self->TransactionObj->Type eq “Create”
return 0 unless $self->TicketObj->FirstCustomFieldValue(‘Port Completion’)
=~ /Ported and Routed/i;
The Custom action preparation code is:
$self->TicketObj->SetOwner(‘Michael W Lucas’);
There is no cleanup code. This looks like it should be perfectly
Any suggestions, folks? Is there any place I can trace what’s
happening in the scrip, or what RT is doing when this is run?