Rick Russell wrote:

> 
> You have to replace the default autoreply scrip with a new scrip with a
> custom condition like so:
> 
>> my $Ticket = $self->TicketObj;
>> my $Transaction = $self->TransactionObj;
>> 
>> if (     ($Transaction -> Type eq 'Create')
>>       && !($Ticket->Queue eq '55')
>>       && !($Ticket->Queue eq '65')
>>       && !($Ticket->Queue eq '67')
>>       && !($Ticket->Queue eq '68')
>>       && !($Ticket->Queue eq '70')
>>       && !($Ticket->Queue eq '77')
>>       && !($Ticket->Queue eq '78')  )
>>   { return (1); }
>> else
>>   {return (undef); }
> 
> As you can see, I've got a whole bunch of exceptions in there. If you
> prefer to match by name, I suppose you could use
> 
>    $Ticket->QueueObj->Name eq 'Whatever'
> 
> instead.

OK, I'm not sure this works as advertised, as I get lines like this in my
log...

Dec 27 23:02:45 ursine RT: Scrip 3 IsApplicable failed: Global
symbol "$Transaction" requires explicit package name at (eval 1086) line 2.
Global symbol "$Ticket" requires explicit package name at (eval 1086) line
3. (/usr/share/request-tracker3.6/lib/RT/Condition/UserDefined.pm:67)
Dec 27 23:56:33 ursine RT: Scrip 3 IsApplicable failed: Global
symbol "$Transaction" requires explicit package name at (eval 1108) line 2.
Global symbol "$Ticket" requires explicit package name at (eval 1108) line
3. (/usr/share/request-tracker3.6/lib/RT/Condition/UserDefined.pm:67)



_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to