Using REST API to query Versions / issues

Paul Simpkins 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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