Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira REST jql only executes first statement

kelebag December 4, 2012

hey,

I am trying to get all issues with a specific fix version.

String url = "http://host:port/rest/api/2/search?jql=project='project'&fixVersion='v1'+order+by+key+asc";

String url = "http://host:port/rest/api/2/search?jql=fixVersion='v1'&project='project'+order+by+key+asc";

The first request returns all issues of the project and the sesond returns all issues with fix version v1.

And both results aren't ordered.

Any suggestions?

thanks!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 4, 2012

Use URL encoding on the attributes. Maybe use an online tool like this to generate it and test!

Your example will be something like:

http://vistreapjira/rest/api/2/search?jql=project%3D%22project%22%20AND%20fixVersion%20%3D%20%22v1%22%20

kelebag December 4, 2012
Nacho Pérez Alonso June 28, 2016

The documentation is sparse and unclear about this topic. You should improve the documentation of the API Rest: https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-query-issues

TAGS
AUG Leaders

Atlassian Community Events