On Correspond Notify AdminCcs if Not Owned

From Request Tracker Wiki
Revision as of 14:22, 24 January 2011 by 99.224.22.98 (talk) (Same as "On Correspond Notify AdminCcs", but adds check to see if the ticket is already owned)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

You don't want to bother your AdminCc with every little details once someone takes ownership, so you don't want to add "On Correspond Notify AdminCcs".

This scrip will only send correspondance if the ticket isn't yet owned.

Condition: User Defined

Action: Notify AdminCcs

Template: Global template: Admin Correspondence

Custom condition:

my $trans = $self->TransactionObj;

return 0 unless $trans->Type eq "Correspond";
return 0 unless $self->TicketObj->Owner == $RT::Nobody->id;
return 1;