Find all Jira fixVersions via the API

Chris Spencer April 6, 2017

How do find all values for fixVersion via Jira's API?

Google shows this similar question to the old answers site, but Atlassian has apparently deleted all of those answers and now redirects those URLs to this site's homepage.

If someone knows where those answers are kept and can be retrieved, please let me know. It seems strange that Atlassian would go to the trouble of setting up that site and then just destroy everything.

1 answer

1 vote
josh
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.
April 6, 2017

Hello Chris,

You can retreive the list of Versions on a project by using the REST API for the project. This doesn't separate it by affects version and fixed version, it is one list for each project shared by all version fields.

Here's the REST reference for the latest version of JIRA.

https://docs.atlassian.com/jira/REST/7.3.4/#api/2/project

For instance, using curl, this will retreive the list of versions for a project:

curl -i -H 'Accept: application/json' -X GET -u username:password http://<yourJiraUrl>/rest/api/latest/project/<yourProjectKey>/versions

Suggest an answer

Log in or Sign up to answer