Skip to content

Instantly share code, notes, and snippets.

@cprerovsky
Created August 8, 2013 13:42
Show Gist options
  • Select an option

  • Save cprerovsky/6184675 to your computer and use it in GitHub Desktop.

Select an option

Save cprerovsky/6184675 to your computer and use it in GitHub Desktop.
rt4 auto add group cc
my $ticket = $self->TicketObj;
my $groups = $self->TransactionObj->CreatorObj->OwnGroups;
while (my $group = $groups->Next) {
$ticket->AddWatcher(Type=>"Cc",PrincipalId=>$group->Id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment