[rt-users] using custom field that applies to group as custom scrip condition

Paul Vlaar paul_vlaar at isc.org
Fri Mar 13 15:00:31 EDT 2009


On Fri Mar 13 2009 19:58:17 GMT+0100 (CET), Paul Vlaar wrote:
> my $trans = $self->TransactionObj;
> my $ticket = $self->TicketObj;
> 
> if  ($trans->Type eq 'CustomField') {
>       my $cf = new RT::CustomField($RT::SystemUser);
>       $cf->LoadByName(Queue => $ticket->QueueObj->id, Name => "Contract");
> 
>       return 1 unless $cf->id;

This is actually a "return 0", but I had it set to 1 for debugging.

> 
>       if  ($trans->Field == $cf->id && $trans->NewValue eq "expiring") {
>             return 1;
>       }
> }


-- 
Paul_Vlaar at isc.org - ISC Operations - +1 650 423 1349 - PGP 0x294EC062



More information about the rt-users mailing list