[rt-users] Setting Transaction Custom fields from CLI

Joshua Speicher spiker at spiker.com
Thu Oct 27 16:09:40 EDT 2005

I've been working with RT 3.4.4 and I have been tasked with creating a Perl
script that runs from the command line and updates tickets.  One of the
options I would like to set is a custom field attached to
comment/correspondence (transactions).  The problem is I have absolutely no
idea how to tell RT to attach those custom field values to the comment that
goes along with it.  I can get the comment to show up in RT, I can get the
custom field value to show up in the DB.  But I'm not sure how to get them
both to show up together in RT.  


I'm using this bit of code to add a new comment:


my $ticket_comment = MIME::Entity->build(Data => $opt_a,

Type => 'text/plain');

my %comment = ( MIMEObj => $ticket_comment );

my ($id, $transaction_object, $err) = $ticket->Comment(%comment);


So my question is if there is a way to add the custom field value to the
$ticket->Comment call so that it gets associated with that comment?


- Spiker



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20051027/63277891/attachment.htm>

More information about the rt-users mailing list