Is there a way for me to change the GitHub branch name in the link to be: assignee/summary

Nicole Torres April 5, 2022

Before using Jira, we established that the protocol for naming new branches (PRs) in GitHub would be assigneeInitials/thingBeingWorkedOnForThatPR

We would like to continue that format and be able to link the Jira issue to the Github repository but the CREATE BRANCH option makes a default link that we'd like to update to look similar to how we've been working. We would be good with: assigneeName/summary

How can our admin do this?

2 answers

1 vote
nxsm April 9, 2022

Hi, we got a similar problem here. 

We are trying to use Issue number as a part of our internal naming protocol for git branches:

Feature-[Jira Project Tag][Issue number]

Bug-[Jira Project Tag][Issue number]

However, we can't find a way to configure the name for new branches when creating directly from Jira Issue Panel. 

Is there a way to do that now or any plans to implement it? In almost every place I have been, they have their own branch naming conventions and the lack of this feature makes part of this integration useless. 

Thanks.

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 10, 2022

@nxsm 

How could this be done directly from the Jira Issue Panel with Github? My last information was that this is only possible with bitbucket. Has there been a change on this?

Best
Stefan

nxsm May 10, 2023

Hi, apologies I haven't tried it with GitHub but we tried with GitLab and we were forced to use predefined link by Jira. Anyway to customize the newly generated branches name now? 

Kind regards.

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 11, 2023

Hi @nxsm 

haven´t used this feature for month. Just wanted to look for a solution. In my system I have github connected to Jira. When I click the "create branch" button in the development panel the dialog offers a button for more options.

There I am able to change the branch name (at least with several more options) --> see screenshots below:

image.pngimage.png

 

Best
Stefan

Samuel Grave Silva
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!
January 2, 2024

Hey @Stefan Salzl , but we cannot add new fields for the branch format?

Here we have the same issue.
we want to create our branchs like:

[AssigneeName]/[IssueKey]-[Issue Summary]

but, we can't add new fields on the screen you just shared.

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 15, 2024

Hi @Samuel Grave Silva 

Those fields/templates are provided by Jira and cannot be configured individually.

Best
Stefan

1 vote
C_ Derek Fields
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 5, 2022

I don't use Github, but I doubt that this is possible. Jira uses the Issue Key in the branch name to create the association between the Issue and the Branch. If you don't embed the Issue Key, there isn't any way for Jira to know how to maintain that association.

Suggest an answer

Log in or Sign up to answer