[rt-users] Writing custom conditions... (need a sanity check)

Peter Losher Peter_Losher at isc.org
Tue Mar 15 03:07:13 EST 2005


There is a global on create scrip that we are using in a RT3 install
(3.0.11) and we now have a case where we need to exempt a queue (just
one queue) from that scrip action.

So rather than make it a per-queue scrip, I have looked over:

http://wiki.bestpractical.com/index.cgi?WriteCustomCondition

And using the general queue as a example, would something like this
work? (basically if the queue is "General" fail, all else pass to the
template)

Re:
-=-
my $ticket = $self->TicketObj;
if ($ticket->Queue ne 'General')  {
    return(undef);
}
else {
    return(1);
}
-=-

Yes, it's a hack :)  I just want to make sure I have the correct syntax
in place.

Thanks - Peter
--
Peter_Losher at isc.org | ISC | OpenPGP 0xE8048D08 | "The bits must flow"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: OpenPGP digital signature
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20050315/ae4ea3bf/attachment.sig>


More information about the rt-users mailing list