[rt-users] viewing custom fields via REST
Kevin Falcone
falcone at bestpractical.com
Mon Dec 6 13:47:44 EST 2010
On Thu, Dec 02, 2010 at 10:09:59PM +0000, Sweeny, Jonny wrote:
> I am using the RT::Client::REST modules but the code for accessing custom fields no longer works. I think this is because some change was made to RT in the last year and the REST code hasn't been updated since then.
>
> CPAN says that I should be able to view my custom fields via this command but it is not working:
>
> # Get a list of ticket's custom field names:
> my @custom_fields = $ticket->cf;
You can start trying to fix this by using bin/rt and RTDEBUG=3
to compare what bin/rt is sending over the wire and what
RT::Client::REST is sending over the wire.
-kevin
> I am able to access the ticket okay -- here is a partial dump of it:
>
> $VAR1 = bless( {
> '_admin_cc' => [],
> '_creator' => 'jsweeny',
> '_created' => 'Fri Nov 19 21:56:23 2010',
> '_time_worked' => '',
> '_id' => 'REDACTED',
> '_status' => 'open',
> '_priority' => '',
> '_initial_priority' => '',
> '_subject' => 'REDACTED',
> '_due' => undef,
> '_time_estimated' => '',
> '_time_left' => '',
> '_queue' => 'General',
> '_cc' => [],
> '__dirty' => {},
> '_resolved' => undef,
> '_starts' => undef,
> ...
>
> Any ideas? Thanks,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20101206/3c2a32e8/attachment.sig>
More information about the rt-users
mailing list