Problem
Git commits made by MettleCI are linked to one or more issues/stories in a work item management system. In some cases, those links don't appear in Atlassian Jira items.
Solution
There are a couple of potential fixes for this issue:
Enable Smart Commits
One cause of this symptom be that Smart Commits had not been enabled in Jira. See the Atlassian Enable Smart Commits page for details on how to verify that smart commits are enabled.
Jira Project Permissions
JIRA has a 'View Development Tools' project permission that needs to be granted. If that permission has not been granted, commit messages will still show on the Issue as comments, but commits and deployments won't be shown against the issue. It's described on the Atlassian Integrating with development tools page.
The View Permission section lists the user groups that can see the Development panel in a JIRA Software issue. The Development panel displays the Create Branch link and summary information for your development process, such as the number and status of the related commits, pull requests, reviews and builds. The visibility of the panel is controlled by the "View Development Tools" project permission.