Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create/update Jira "Release" objects using Bitbucket Pipelines

Matt Dalen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 29, 2021

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
Atlassian Team members are employees working across the company in a wide variety of roles.
August 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.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events