Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Jira link to git?

We are using Jira and have our code in a Git (1.7.4.1) repository. I see that there is a Git plugin for Jira (4.0.1), but I'm not able to figure out from the web site how we can associate a branch or different revisions with Jira tasks. Assuming we install the plugin into Jira, can someone provide some step-by-step instructions for a developer to answer

  1. When we commit code, how do we associate that with a Jira task?
  2. When we create a branch, how do we associate that with a Jira task?
like image 961
Dave Avatar asked Apr 12 '11 16:04

Dave


People also ask

How does Jira integrate with GitHub actions?

Connect Github Action with your work in Jira Software and spend less time switching between Jira & GitHub. Simply add the provided webhook URL to your GitHub web hook and now you can: Use Smart Commit syntax to link branches and commits to Jira issues. View build status at a glance in the Jira issue screen.

What is git in Jira?

Overview. Git Integration for Jira is an app for your existing Jira Server, Jira Cloud and Jira Data Center instance that combines the data in your Git repository with the projects and issues in Jira. With Git Integration for Jira app, start working with Git in the familiar Jira interface.

Is Jira and git are same?

Jira is a bug tracking system or used for agile project management, whereas Github is a source code repository to host the source code of a project in its site to push the code effectively and maintain the developing project consistently from all the developers.


2 Answers

For 1, you specify the JIRA issue# in the commit comment.

like image 124
anon Avatar answered Oct 09 '22 03:10

anon


for step by step instructions try this: https://confluence.atlassian.com/display/BITBUCKET/Linking+Bitbucket+and+GitHub+accounts+to+JIRA

and for 2. branches are not associated with jira tasks, only commits are..

so supposed you got a jira issue# that has the symbol: JIR-323.. even if you create a branch with the name JIR-323, JIRA (and it's DVCS connector) won't care.. however if you have a randomly named branch name, and you make 100 commits on that branch, and 3 of those commit messages begin with JIR-323, then only those commits will appear in the jira issue page under the commits tab.

in other words.. you can have the same branch having commits displayed under different jira task pages, and by the same token, you can have the same jira task page displaying commits from different branches.

like image 32
abbood Avatar answered Oct 09 '22 02:10

abbood