Git Integration for Jira Self-Managed (Data Center/Server) Documentation

Contact Support: Server  
Contact Support: Data Center  

Git notes

The Git Integration for Jira app displays git notes in the Git Commits tab:

For a git repository with several existing commits in it, commit authors can associate issue keys via git notes to these commits without having to edit the commit messages. The Git Integration for Jira app will index issue keys in git notes.

Smart commit actions are also supported in git notes.

Each commit can only have one git note per namespace. There can be multiple note namespaces per commit. These note namespaces are automatically indexed.

Git notes are sorted by name.

Guidelines for adding new git notes:

  • add git notes to new commits which has not been indexed yet;

  • git notes can be added to old commits which is already indexed – but does not have an issue key.

For old commits that are already indexed and have issue key(s) in commit message – see How do I clear the Git Integration Plugin for Jira cache manually? FAQ article.

git notes add -m 'TST-3 is also fixed' 107af254
git show -s 107af254
git push origin refs/notes/*
GitHub and GitLab don’t display Git notes. However, notes can be fetched from and pushed to both services.

Bonus: Adding git notes with TortoiseGit

For those who are using TortoiseGit client on Windows, you can perform the following steps to add/edit git notes:

  1. Navigate to your local git clone folder.

  2. Right click anywhere on the file list view pane of the File Explorer to open up the context menu; go to TortoiseGit then click Show log. The Log Messages dialog is displayed.

  3. Right click on a commit or PR then click Edit notes. The Edit Notes dialog is displayed.

    • Enter a descriptive note for the selected commit or PR. We recommend to add a Jira issue key to this git note so that it will be indexed by the Git Integration for Jira app.

    • Click OK to accept this entry.

  4. Push this git note to the git server. To do so, right click on the file list view of the File Explorer then click Git sync… . The GIt Synchronization dialog is displayed.

  5. The new/edited git note is pushed to the git server and the git note can be seen in the Git Commits tab of the specified Jira issue.

Have feedback about this article? Did we miss something? Let us know!
On this page