NotifyOwnerOrQueueAdminCcsAsComent: New ScripAction.

This commit is contained in:
Brett Smith 2018-04-26 09:56:55 -04:00
parent 727d9d5659
commit 8514ae62d5
3 changed files with 28 additions and 1 deletions

8
etc/upgrade/0.5/content Normal file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env perl
@ScripActions = (
{ Name => 'Notify Owner or Queue AdminCcs as Comment',
Description => 'Sends comment mail to ticket AdminCCs, plus the Owner if set, otherwise queue AdminCCs',
ExecModule => 'NotifyOwnerOrQueueAdminCcsAsComment',
},
);

View file

@ -0,0 +1,15 @@
package RT::Action::NotifyOwnerOrQueueAdminCcsAsComment;
use strict;
use warnings;
use RT::Action::NotifyAsComment;
use mro "c3";
use base qw(
RT::Action::NotifyOwnerOrQueueAdminCcs
RT::Action::NotifyAsComment
);
RT::Base->_ImportOverlays();
1;

View file

@ -2,7 +2,7 @@ use strict;
use warnings; use warnings;
package RT::Extension::Conservancy; package RT::Extension::Conservancy;
our $VERSION = '0.4'; our $VERSION = '0.5';
=pod =pod
@ -18,6 +18,10 @@ A Scrip action that sends notice to the ticket owner if that's set, or queue
AdminCCs if not. Ticket AdminCCs always get the notice too, which is how AdminCCs if not. Ticket AdminCCs always get the notice too, which is how
this is different from the built-in "Notify Owner or AdminCCs". this is different from the built-in "Notify Owner or AdminCCs".
=head3 RT::Action::NotifyOwnerOrQueueAdminCcsAsComment
A variant of the above to send notice from the comment address.
=head3 RT::Condition::StatusChangeWithDependents =head3 RT::Condition::StatusChangeWithDependents
A Scrip condition that extends RT::Condition::StatusChange. The affected A Scrip condition that extends RT::Condition::StatusChange. The affected