Forums

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

Get only unreleased versions in Jira REST API (by url or JQL)

surmy
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!
August 17, 2018
Hello, I'm trying to parse only unreleased versions in Jira API, but currently JQL doesn't really support searching versions and /project/versions returns all versions and I can't filter them. Interestingly, Jira has all kinds of filters (released, unreleased and archived versions) on the website itself, but not on the API/JQL. If you guys have any suggestion or if I'm missing something please let me know. Thanks.

1 answer

1 accepted

3 votes
Answer accepted
Mauricio Karas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 20, 2018

Hello, Guilherme.

Looking at the documentation, and as you've mentioned, there's no way to filter the versions with this REST call "/rest/api/2/project/{projectIdOrKey}/versions".

I did some testing here to try to find an endpoint for the GUI version search, Jira uses the following internal REST call to get all the versions:

/rest/projects/1.0/project/LDC/release/allversions

But just like the standard API one, it returns all versions, Jira just filters the result that was already loaded from the API call.

My only suggestion is to use the standard REST call and just filter the result with the "released" field, it will be either "true" or "false".

Kind regards,
Maurício Karas

Suggest an answer

Log in or Sign up to answer