[rt-users] OnCreate insert a comment IN the ticket?
Jeff Blaine
jblaine at kickflop.net
Tue Sep 4 15:05:23 EDT 2012
I'm lost in perldoc lib/RT/*.pm land, confused about how/where
to create a comment in a ticket at creation-time.
We have a need to put a "banner", if you will, as the first
comment in every ticket of a particular queue. So, a Scrip
that performs a comment "action" on the ticket.
The following fails to do anything. Should I be trying to use
$self->TransactionObj->SetData() instead... or...?
Scrip:
Condition: On Create
Action: User defined
Template: -
Stage: TransactionCreate
condition:
return 1;
action preparation:
my $ticket = $self->TicketObj;
$ticket->Comment(content => "blah!");
cleanup:
return 1;
More information about the rt-users
mailing list