Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to retrieve all Jira project releases through API?

How do you retrieve all the releases through the API that are shown on the "Releases" page in Jira cloud?

e.g.

https://myproject.atlassian.net/projects/myproject?orderField=RANK&selectedItem=com.atlassian.jira.jira-projects-plugin%3Arelease-page&status=unreleased

 

 

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.

2 answers

2 votes
Andy Heinzer Atlassian Team Oct 02, 2018

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)

year 2021 :

this method might have changed to :
get_project_versions(self, key, expand=None)

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you