[rt-users] AdminCC set to new Owner on Owner change
Rocky
rocky at mindphone.org
Sun Sep 12 18:25:52 EDT 2004
I've been searching for a way to add the owner of a ticket to the AdminCC
field when ever the owner value changes. I searched the wiki and the list
archives with little to no luck.
the TicketObj->AddWatcher method seems to be exactly what i need to use to
add the owner to the AdminCC field, but it seems i'm not using properly or
something. Any help with what is wrong with the following scrip would be
greatly appreciated.
Thanks in advance.
-Rocky
---------------------------Begin Test Scrip-------------------------------------
Description: Test Scrip
Condition: On Owner Change
Action: User Defined;
Custom action preparation code: return 1;
Custom action cleanup code:
my $xmid = $self->TicketObj->OwnerObj->Id;
my $xmuser = RT::User->Load($xmid);
my $xmemail = $xmuser->EmailAddress;
$self->TicketObj->AddWatcher { Type => AdminCC, PrinicpalId => $xmid, Email => $xmemail};
return 1;
Stage: TransactionCreate
Template: Global Template: Blank
-----------------------------End Test Scrip-------------------------------------
--
______________________________________________________________________
what's with today, today?
rocky at mindphone.org
More information about the rt-users
mailing list