I’m attempting to write a custom action which adds the commenter as a CC whenever a comment is made, but I only want it to do this for specific users. ideally it would work only for users in a specific group.
So far I have a scrip that successfully adds any commenter as a cc, I just need help limiting it to specific users, or ideally users in a specific group. Any help with this would be greatly appreciated.
I am running RT 5.0
Condition: On Comment
Action: User Defined
Custom action preparation code:
Custom action commit code:
my $current_user = $self->TransactionObj->CreatorObj;
$self->TicketObj->AddWatcher(Type=>‘Cc’,Email => $current_user);