Skip Menu |

This queue is for tickets about the RT-Client-REST CPAN distribution.

Report information
The Basics
Id: 78439
Status: resolved
Priority: 0/
Queue: RT-Client-REST

People
Owner: jlmartinez [...] capside.com
Requestors: richardgmcmahon [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 0.45



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"; };
Hello, A documentation change has been applied to the show method derived from your suggestion (https://code.google.com/p/rt-client-rest/source/detail?r=62). This change will be on CPAN with the next release of RT::Client::REST Thanks for contributing! Best Regards, JLMARTIN