[rt-users] Trouble with notification scrip
Stephen Turner
sturner at MIT.EDU
Fri May 18 12:44:32 EDT 2007
Kenn,
The following code might do what you need - it's taken from a similar
scrip we use.
Steve
my $trans = $self->TransactionObj;
if ($trans->Type eq 'CustomField') {
my $cf = new RT::CustomField($RT::SystemUser);
$cf->LoadByName(Queue => $self->TicketObj->QueueObj->id,
Name => "Approval-Status");
return 0 unless $cf->id;
if ($trans->Field == $cf->id && $trans->NewValue
&& $trans->NewValue eq "Reviewing Request" ) {
return 1;
}
}
return 0;
More information about the rt-users
mailing list