How does Jira link to git?
We are using Jira and have our code in a Git (188.8.131.52) 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
- When we commit code, how do we associate that with a Jira task?
- When we create a branch, how do we associate that with a Jira task?
- Configuring the Atlassian JIRA plugin to work with Jenkins CI system
- Integrate TFS git source control and JIRA
- JIRA extract git commit using REST API
- Updating Jira tickets from Jenkins workflow (jenkinsfile)
- JiraTestResultReporter.JiraReporter aborted due to exception error in Jenkins
- jira: git notes support in git plugin for jira?
2 Solutions collect form web for “How does Jira link to git?”
For 1, you specify the JIRA issue# in the commit comment.
for step by step instructions try this:
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.