[rt-users] Custom action - http://wiki.bestpractical.com/view/AutoCcOwner

Gavin Henry gavin.henry at gmail.com
Fri May 29 17:59:01 EDT 2009


Hi,

Should this work on 3.8.3?

I'm trying it with this in the Custom Action:

$RT::Logger->info("AutoCcOwnerScrip");
my $last_id = $self->TransactionObj->NewValue;
my $temp_user = RT::User->new();
$temp_user->Load($last_id);
my $last_email = $temp_user->EmailAddress();
$RT::Logger->info("$last_email");
$self->TicketObj->AddWatcher( Type => "Cc",
                              Email => $last_email);

return 1;

and return 1; in cleanup.

I can't see my $RT::Logger stuff at all in rt.log

Thanks.



More information about the rt-users mailing list