You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
How do you retrieve all the releases through the API that are shown on the "Releases" page in Jira cloud?
e.g.
The Python API has has a `version(id)` function, but it requires an ID. I need to lookup all the releases that have been created, just just a specific one.
In this case, I think you are looking for a specific version name/number, namely the unreleased ones in that project. As such you can retrieve this by using the endpoint of GET /rest/api/3/project/{projectIdOrKey}/version More details on the syntax of this can be found in Get project versions paginated.
This endpoint will allow you to use the status parameter in your REST call, which you can enter the value of 'unreleased' in order to see all those versions in that project that have not yet been released.
I ended up using the Python wrapper for the API and doing:
jira = JIRA({'server': server_name}, basic_auth=(username, password))
versions = jira.project_versions(myproject_key)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
year 2021 :
this method might have changed to :
get_project_versions(self, key, expand=None)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.