[rt-users] Need to send "Big Cheese" email based on requestor's email or group membership

Ethier, Michael methier at CGR.Harvard.edu
Thu Jan 16 10:15:51 EST 2014


Hello,

We are running RT 4.0.7 in production and a test instance of 4.0.18. We have the need to flag
tickets from VIPs by comparing the incoming (on create) ticket's requestor's email address
OR if they are member of a particular Windows AD group. If a match is found, then
send an email to a specific email address (our group) with Subject: Big Cheese ticket <RT ticket number>
and a short body with the requestors name and email ....let's say. Maybe action of Notify AdminCC's
would be fine in this case.

I found this snippet of code in the RT wiki:
http://requesttracker.wikia.com/wiki/CustomConditionSnippets


return 0 unless $self->TransactionObj->Type eq "Create";
return 1 if $self->TicketObj->IsWatcher(
    Type => 'Requestor', Email => 'bigcheese at harvard.edu'
);
return 0;

Which works but only checks against 1 email address. We have 50-60 people in the big cheese group.
I have written a small perl script which dumps out all the email address for all the big cheese's in
a file in /tmp, 1 email per line. Any way to check against that inside RT on create ? Or check if a requestor is in
a specific Windows AD group ? If yes, trigger the email to our group.

Thanks in advance for any help,
Mike



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140116/cda13ed5/attachment.htm>


More information about the rt-users mailing list