Subject: | What's possible in an older version of RT (version 3.4.4)? |
I am trying to automate RT creation / update via this module and have
had partial success: I've been able to create and update tickets, assign
Requestor, change Subject, etc., but have not been able to read or
update custom fields, nor send correspondence or comments.
Here's what doesn't work for me (reading or setting custom fields):
$rt->login(username => $username, password => $password);
# Update current ticket; set new subject and status
my $ticket = RT::Client::REST::Ticket->new(
rt => $rt,
id => $ticket_id,
)->retrieve;
my @custom_fields = $ticket->cf;
# the following is empty (prints nothing; Data::Dumper also shows
nothing)
foreach my $a_cf (@custom_fields) {
print "cf: ", $a_cf, "\n";
}
# the following does work:
print "Subject of ticket ID ", $ticket->id, " is ",
$ticket->subject, "\n";
Sending a correspondence (or comment):
$rt->login(username => $username, password => $password);
# Update current ticket; set new subject and status
my $ticket = RT::Client::REST::Ticket->new(
rt => $rt,
id => $ticket_id,
)->retrieve;
$ticket->correspond(
message => "hi there",
);
Is this because 3.4.4 doesn't implement these methods correctly? Or
should it?
Thanks,
Chris