Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: cedelis [...] uillinois.edu
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.37
Fixed in: (no value)



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
Subject: Re: [rt.cpan.org #40930] What's possible in an older version of RT (version 3.4.4)?
Date: Fri, 14 Nov 2008 16:07:02 -0500
To: bug-RT-Client-REST [...] rt.cpan.org
From: Jerrad Pierce <belg4mit [...] MIT.EDU>
Hello, 3.4 is awfully old. As the README notes, this module was developed against 3.6. It's also known to (mostly) work with 3.8. If you care to submit patches for 3.4 we will consider them, but presently we are focused on ironing out bugs associated with current versions of RT. -Jerrad -- Free map of local environmental resources: http://CambridgeMA.GreenMap.org -- MOTD on Pungenday, the 26th of The Aftermath, in the YOLD 3174: No nymphs, hands or banjos about it. --JP