Is it possible to create a branch in Github from jira issue ?

Venkatesh December 22, 2021

Hello Team,

 

I am looking for an option or for a script that would create a branch in Github from a jira issue without using any add-on.

Thanks in Advance,

Venkatesh Pettem

2 answers

2 votes
Aaron Geister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 22, 2021

There are two ways to do this in Jira without an add on.

  1. Is to add triggers in workflows that would connect to a webhook to the repository in github. 
  2. Use jira automation tool and create branch from a specific status, or manual trigger. Jira automation tool has trigger that could create a branch in many different ways with condition based on your needs in the dev process and or for you workflow. 

In short this will depend on your need which way you choose to apply the creation of a branch from Jira to github. 

Workflows will be a little more work to make this happen and knowledge of Jira but can be a more for sure way. 

Automation for Jira is an easier way to apply this. Little more flexible done with automation and can be changed much easier if your process changes. 

Venkatesh December 26, 2021

Hi Aaron Geister

We already have Automation for jira  plugin for our Jira Data Center version 8.13.13 .

Could you please provide the steps to integrate with Github Enterprice and steps to to create branch(create branch option) from jira issue view screen in github.

 

Thanks In Advance.

Like Aaron Geister likes this
Aaron Geister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 27, 2021

@Venkatesh Here is a link to connect Github Entp: https://support.atlassian.com/jira-cloud-administration/docs/integrate-with-github/

Here is how to create an automation with workflow for creating a branch:  https://confluence.atlassian.com/jirasoftware/blog/2015/07/workflow-automation-triggers

Here is how to create a branch with Automation for Jira: https://support.atlassian.com/cloud-automation/docs/branch-automation-rules-to-perform-actions-on-related-issues/

and a video you can follow to do the same thing by Ravi Sagar one of my favorite community helpers. Hope this all helps.

Bogdan A. Dancu
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 7, 2022

Hello @Aaron Geister i am also looking into  this and all i can see in Automation for Jira is status changing of ticket in jira based on when a branch is created.

 

What @Venkatesh and I need is a branch to be greated in Git when we change status of jira ticket to in progress. That afaik cant be done with automation rule.

 

We used to do it via webhook but now that is dead for us since Oauth 2.0

Aaron Geister
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 11, 2022

Here are the possible triggers for Automation for Jira when trying to use it with CI-CD pipeline: 

You should be able to build automation to your GitHub repo with a use of a webhook. This can also be done in triggers in the workflow if needed. 

image.png

Igor K_ September 26, 2022

Hello, I do not see any DevOps triggers under Automation rules for DC/server Jira installations. @Aaron Geister are your examples for Cloud or Data Center version?

The tags for this topic are DC/server.

Aaron Geister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 27, 2022

This example is for Cloud but I think you can do this through the workflow on DC with workflow triggers. 
It will need a webhook to be able to make it work thought. 

Like Igor K_ likes this
1 vote
Syed Majid Hassan -Exalate-
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.
October 4, 2022

Hi @Venkatesh

This is Majid @ Exalate. 

If you are open to doing this (and much more) via a third party integration solution, then I would request you to explore Exalate. The app provides you fully customizable synchronization between Github issues and PRs, and Jira issues. 

Please feel free to book a customized demo if you would like to see the product in action. 

Thanks

Majid

Suggest an answer

Log in or Sign up to answer