Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using REST API to query Versions / issues

Paul Simpkins
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 2, 2020

I'm trying to use the REST API to initially query for Version and then to supply a version and get a list of the issues for that version.

i've been able to get the versions using ;

/rest/api/2/project/{projectID}/versions - but cannot find where to get the issues for that Version.

if i try using search and JQL then it falls over as my versions have a space 'Rel 1' and it treats the 1 as separate and not part of the string and i get the error about expecting an AND or OR.

1 answer

0 votes
Kian Stack Mumo Systems
Community Champion
November 2, 2020

Try this for your JQL!! Encode your spaces as %20. For me, it works like this. https://jira.domain.com/rest/api/2/search?jql=fixVersion=%22Rel%201%22

Suggest an answer

Log in or Sign up to answer