In Bitbucket, when linked with Jira (or other supported Issue Trackers), you can enable the option to require commit message to contain an issue key. This way, developers are forced to reference their Jira issue, and all commits can be then tracked and reviewed from Jira.
Not all commits come from developers in our case. We have cases where Bamboo performs commits, along with another build platform, for various reasons, like adding labels or changing Maven settings.
Is there a way to add exceptions? Where some users or SSH keys don't have that requirement? That way tasks from Bamboo or Jenkins could be permitted to push changes without a Jira issue.