Forums

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

Creating a release branch on sprint end

Zach Smith
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!
December 1, 2022

I am relatively new to jira and the automation it allows. I currently setting up a trigger to kick off a task when I end the sprint to create a release branch off of master.

What I am wanting to try and do is have jira/bitbucket automatically create this release branch for me, if it is possible, when I end the sprint. It would also be cool if it could automatically update the version as well, but that could just be a pipe dream. I have been googling around and cannot seem to find anything saying you can or cannot.

 

Our setup basically has a master branch: when an issue is created, they branch off master, do the work, create a pull request, and it gets merged back into master. When the sprint ends, I create the release branch off of master to have a historical static entity of what work was done up to that point and to give a point to build off of to send out to the customers for testing on their end.

2 answers

1 vote
Charlie Gavey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 4, 2022

Hi @Zach Smith

Here's some quick links to working with BitBucket in Automation for Jira. You'll find Automation in your Project or Global Settings.

https://community.atlassian.com/t5/Automation-articles/Automation-feature-rolled-out-Create-branch-in-Bitbucket/ba-p/2079583

https://www.atlassian.com/software/jira/automation-template-library/bitbucket-github-gitlab

Hope that helps!

Cheers,

Charlie

Aron Gombas _Midori_
Community Champion
December 5, 2022

@Charlie Gavey Are these Bitbucket actions work with Jira Server, as that's the deployment type this thread was labeled with?

It seems to me that the articles you link apply to Jira Cloud only. Am I missing something?

0 votes
Aron Gombas _Midori_
Community Champion
December 1, 2022

Automation for Jira doesn't offer dedicated actions for Bitbucket.

But, because the AFJ framework is extensible, do this:

  1. add a Groovy script execution action to the automation rule (this app extends the set of built-in actions with the "Run Groovy script" action)
  2. from the Groovy script, create a branch through the Bitbucket REST API

(Discl. The recommended app is developed by my team. It is paid, supported and offers a solution where the built-in capabilities are not sufficient.)

Charlie Gavey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 4, 2022

Suggest an answer

Log in or Sign up to answer