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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.