Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

What is the release button api end point?

Edited

I'm planning to trigger release in jira, when prod CI/CD pipeline is triggered using curl command. To perform, I need api end point for release button. Also I have an API endpoint to trigger my pipeline, so is there a way to trigger an API endpoint from Jira when I click the same release button. 

Screenshot 2021-12-16 at 1.04.45 PM.png

1 answer

@Muhammad Fahad We are using jira cloud hosted by atlassian, but the confluence link you have shared is for server and data center.

@Muhammad Fahad I would appreciate if you can confirm that, we can use update API endpoint to trigger the release?

Hi @Vikraman - Yes, that's correct. You need to use Update version endpoint and pass released as true for the released versions: 

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/#api-rest-api-3-version-id-put

cURL example:

curl --request PUT \ --url 'https://your-domain.atlassian.net/rest/api/3/version/{id}' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "archived": false, "overdue": true, "releaseDate": "2010-07-06", "name": "New Version 1", "self": "https://your-domain.atlassian.net/rest/api/~ver~/version/10000", "description": "An excellent version", "userReleaseDate": "6/Jul/2010", "id": "10000", "projectId": 10000, "released": true }'
Like Vikraman likes this

{"errorMessages":[],"errors":{"name":"A version with this name already exists in this project."}}

 

@Muhammad Fahad I'm getting the above response.
My requirement is to trigger an existing release using api end point

We only provide released and releasedDate properties in the body.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

577 views 21 25
Read article

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