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.
to link the commit to this Jira 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 app 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.
Git administrator »
If you want to enforce the commit with a hook, please install this Git commit hook script – Commit-msg Hook.