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

Nicole Torres
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!
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?

3 answers

1 vote
nxsm
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!
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
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!
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

David Muller September 16, 2024

Hi @Samuel Grave Silva , I also wanted a way to use the assignee name in a branch template like `[AssigneeName]/[IssueKey]-[Issue Summary]`.

I created a Jira cloud app that allows you to copy a customized template of text by clicking a button that appears on the issue view. You can include issue data like the issue key, issue summary, issue assignee, current user, etc.  You can share the template so that everyone can click a button and get the same formatted branch name.

I added another answer on this post that includes screenshots and describes how the app lets you configure a custom branch template that fits your team's needs. 

The app is called Copy Issue Link and you can find it here: https://marketplace.atlassian.com/1225783 

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.

0 votes
David Muller September 16, 2024

Hi @Nicole Torres ,  I've also wanted a way to create a custom template for git branch names that support substituting, for example, the current assignee + issue summary in a template like `assigneeName/summary`. 

I created a Jira Cloud app that allows you to copy a customized template of text by clicking a button that appears on the issue view. For example, you can create a custom button allows you copy a branch name to your clipboard that follows a template like `assigneeName/summary`:

Screenshot 2024-09-16 at 8.03.44 PM.png

Clicking the above button would copy text like `david-muller/fix-bug-in-app` to your clipboard. You can include issue data like the issue key, issue summary, issue assignee, current user, etc. :

Screenshot 2024-09-16 at 8.18.06 PM.png

You can also use modifiers to, for example, dynamically remove whitespace characters, get user initials, or lowercase text before you copy it. Everyone on your team can use the same branch name template so that everyone shares the same style.

The app is called Copy Issue Link and you can find it here: https://marketplace.atlassian.com/1225783 

Check out the app, and let me know what you think. Thanks!

Suggest an answer

Log in or Sign up to answer