[rt-users] Setting field values through scrip
Mauricio Tavares
raubvogel at gmail.com
Fri Jul 23 15:06:56 EDT 2010
Trying to learn how to change values of variables associated with a
ticket. Let's say I want to set the From: field (for Notify Ccs) based
on who the email will be sent to. How do I read and change it? Would
something like this:
my $Ticket = $self->TicketObj();
my $CFName = 'From';
my $CF = RT::CustomField->new( $RT::SystemUser );
$CF->LoadByNameAndQueue( Name => $CFName, Queue => $Ticket->Queue );
return 0 unless $CF->id;
# Change the value of From:
[...]
be a good start?
More information about the rt-users
mailing list