Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,341
Community Members
 
Community Events
176
Community Groups

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

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

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. 

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

@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.

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

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

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.

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

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
TAGS

Atlassian Community Events