Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Create/update Jira "Release" objects using Bitbucket Pipelines

Hi, all,

I'm trying to figure out how to do the following in a bitbucket pipelines script (to be triggered on a PR merge):
a) Given a version string from the code, create that release version in the Jira "Releases" page if it does not already exist.

b) Add that version to the list of "fix versions" on all tickets tied to the branch being merged.


I have no idea if this is possible, but it seems like it should be, otherwise the Jira Release functionality seems kind of useless if you have to do it manually.

1 answer

0 votes
Mark C Atlassian Team Aug 24, 2021

Hi @Matt Dalen,

Thanks for reaching out to the community.
I'm Mark from the Bitbucket Cloud support team.

When it comes to Pipelines, this should be doable by running API calls inside your Pipelines YAML configure through CURL.
You can also use default environment variables on Pipelines to form a version string (e.g. BITBUCKET_BUILD_NUMBER).

When it comes to Jira Cloud REST API for releases, I'm not 100% sure Jira has REST API endpoints for it.
I've found this community question but it does not confirm if there's a REST API as they've used SOAP from JIRA CLI.

Hope that helps and let me know if you have questions about Bitbucket Pipelines.

Mark C

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,170 views 2 9
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