To learn on how to setup specific git repository with Jira, follow related git host topic on the sidebar. At the end of this guide, the user will be able to grasp how easy it is to integrate git repositories with Git Integration for Jira.
This process requires an existing git host repository.
To connect a git repository to the Jira server via the Git add-on:
This process requires a git host account (e.g. GitHub/GitLab/VSTS etc.) Use the auto-connect integration panel in Jira Cloud/Server to connect git repositories from git hosts to Jira.
ONwill require users to provide PAT which will be used for branch and merge/pull request creation/deletion (via the developer panel on the Jira issue page). This is a security feature of Git Integration for Jira add-on for git hosts that support two-factor authentication. This option requires the Repository Browser feature to be enabled.
ON, Jira Users are required to set their PAT for specific repositories via Repository Browser. The setup PAT link is accessible via the developer panel on Create Branch or Create Pull/Merge Request dialogs in the Jira issue page.
Open a Jira issue then go to the Git Commits tab. In this tab, you will see commits, files changed, links to external repository, commit author and more.
In the above example, the issue key GIT-913 text is inserted into a git commit message to link the commit to this issue.
The git commit will get associated with the Jira issue if the commit message includes the exact issue ID. The Git Integration for Jira add-on will automatically index new commits and associate the referenced issue. For better readability, place the issue key text at the start of the commit message.
If you want to enforce the commit with a hook, please install this Git commit hook script. Commit-msg Hook .
Smart Commits enable users to perform actions on Jira issues from a single commit. In a commit message, enter the issue key and some desired action such as resolving an issue, closing an issue, time tracking or all of them.
For example, if a user wants to log specified time with worklog comment, adds a comment, and resolve the issue TEST-100, enter the commit message as follows:
TEST-100 #time 2h 30m Fixed code #comment Merge to master #resolve
Enable/disable this feature via:
To learn more about Smart Commits, see Git Integration for Jira: Smart Commits.
The Repository Browser permits users to explore the repository similar to browsing a folder in Finder or Windows Explorer.
Go to the Git menu in Jira then select View all repositories (or specific repository if it appears in the Git menu.)
The Repository Browser page is displayed. Click a repository to view its contents.
Enable/disable this feature via:
The Git Integration for Jira add-on adds two features on the Jira issue developer panel – Create Branch, and Create Pull/Merge Request. For more information about the developer panel, see the Git for Jira - Developer Panel documentation .
Open a Jira issue then on the developer panel, clickto create a branch for the selected repository. The following dialog is displayed:
This will create the named branch to the target repository in the git host. The newly-created branch is also listed under Branches on the developer panel.
Open a Jira issue then on the developer panel, clickto create a pull/merge request for the selected repository. The following dialog is displayed:
This will create the named pull/merge request to the target repository in the git host. The newly-created pull/merge request is also listed under Branches on the developer panel.
The Require User PAT option in the Integration Settings will require users to provide PAT which will be used for branch and merge/pull request creation/deletion (via the developer panel on the Jira issue page). This is a security feature of Git Integration for Jira add-on for git hosts that support two-factor authentication.
Access the Create Branch and Create Pull/Merge Request features in the Jira issue developer panel. For more information, see Git for Jira - Developer Panel .