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.
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.
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...
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