[rt-users] Excepting certain queues from global scrips (my solution)

Daugherity, Andrew W adaugherity at tamu.edu
Mon Aug 8 17:27:42 EDT 2011

So, after searching for ways to accomplish this, and seeing it is a common feature request (sometimes termed "disable notifications for specific queues"), with some existing solutions that accomplish it but weren't quite what I was looking for, I decided to write my own.  It is implemented as custom condition Perl modules (installed under $RTHOME/local/lib/RT/Condition).

After installation you get new conditions to use in your scrips like "On Correspond (w/queue exceptions)".  The queue exception list is set in your RT_SiteConfig.  You can have a mixture of "truly global" and "global with exceptions" scrips by changing which condition they use. 

I don't claim to be a Perl hacker so I'm sure there are some things that could be done better, but this works for me, at least with RT 4.0.1.  Perhaps someone with better knowledge could explain why in my StatusChangeQueueExcept module I had to instantiate the other checks field-by-field instead of just passing $self.

Attached is my README and the tarball, which I hope makes it through to the list.  It is not yet packaged as an extension or plugin; I might do so if there is demand and I receive guidance as to which, if either, is appropriate.

Andrew Daugherity
Systems Analyst
Division of Research, Texas A&M University
adaugherity at tamu.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Type: application/octet-stream
Size: 4824 bytes
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110808/066b2a6d/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110808/066b2a6d/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RT-Queue-Exceptions.tar.gz
Type: application/x-gzip
Size: 3002 bytes
Desc: RT-Queue-Exceptions.tar.gz
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110808/066b2a6d/attachment.bin>

More information about the rt-users mailing list