Subject: | Documentation suggestion |
It took me a while to work out the syntax to obtain the value of a
custom field. I suggest the following example is added:
try {
# Get ticket #10
my $id=10;
$ticket = $rt->show(type => 'ticket', id => $id);
print "Ticket Id: ", $id, "\n";
print "Queue: ", $ticket->{Queue}, "\n";
print "Subject: ", $ticket->{Subject}, "\n";
print "ProblemType: ", $ticket->{"CF.{Problem Type}"}, "\n";
print "Host: ", $ticket->{"CF.{Host}"}, "\n";
print "Owner: ", $ticket->{Owner}, "\n";
print "Creator: ", $ticket->{Creator}, "\n";
print "Requestors: ", $ticket->{Requestors}, "\n";
print "Status: ", $ticket->{Status}, "\n";
print "Created: ", $ticket->{Created}, "\n";
print "Told: ", $ticket->{Told}, "\n";
print "Resolved: ", $ticket->{Resolved}, "\n";
};