Skip Menu |

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

Report information
The Basics
Id: 100277
Status: resolved
Priority: 0/
Queue: JIRA-REST

People
Owner: GNUSTAVO [...] cpan.org
Requestors: chuck.tung [...] amd.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.010



Subject: JIRA-REST set_search_iterator does not support the expand PARAM?
Date: Tue, 11 Nov 2014 23:01:57 +0000
To: "'bug-JIRA-REST [...] rt.cpan.org'" <bug-JIRA-REST [...] rt.cpan.org>
From: "Tung, Chuck" <chuck.tung [...] amd.com>
Gustavo, Thank you for your JIRA::REST module. I'm using JIRA-REST-0.010 I'm trying to use the "expand" PARAM in the set_search_iterator module: $jira->set_search_iterator({ jql => 'project="TEST"', maxResults => 16, expand => "changelog", }); while (my $issue = $jira->next_issue) { print "Found issue $issue->{key}\n"; } I get the following error: JIRA::REST Error[400 - Bad Request]: - Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token at [Source: org.apache.catalina.connector.CoyoteInputStream@4d4c2047; line: 1, column: 86] (through reference chain: com.atlassian.jira.rest.v2.search.SearchRequestBean["expand"]) Does the set_search_iterator utility not support the "expand" PARAM? Thanks in advance, -Chuck Chuck Tung [Description: Description: Description: green] PMTS | BDC Cores 90 Central Street, Boxboro, MA 01719 USA O +(1) 978-795-2692 M +(1) 978-430-8658 [Description: Description: Description: image004] facebook<https://www.facebook.com/AMD> | amd.com<http://www.amd.com/>
Download image003.png
image/png 3.7k
image003.png
Download image004.png
image/png 360b
image004.png
On Tue Nov 11 18:02:23 2014, chuck.tung@amd.com wrote: Show quoted text
> Gustavo, > Thank you for your JIRA::REST module. > I'm using JIRA-REST-0.010 > > I'm trying to use the "expand" PARAM in the set_search_iterator > module:
Hi. Despite what the JIRA REST API documentation says (https://docs.atlassian.com/jira/REST/latest/#d2e1940) the "expand" parameter must be a list of strings and not a comma-separated string of values. So, instead of: expand => "changelog", Try this: expand => ["changelog"], -- Gustavo