Difference between revisions of "On Correspond Notify AdminCcs if Not Owned"

From Request Tracker Wiki
Jump to navigation Jump to search
(Same as "On Correspond Notify AdminCcs", but adds check to see if the ticket is already owned)
 
m (1 revision imported)
 

Latest revision as of 16:15, 6 April 2016

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;