On Correspond Notify AdminCcs if Not Owned

From Request Tracker Wiki
Revision as of 16:15, 6 April 2016 by Admin (talk | contribs) (1 revision imported)
(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;