JIRA Commit checker in Bitbucket Server/Data Center is unable to recognise valid keys from certain JIRA projects in the commit message (like UTF-x, UTC-x, GMT-x etc)

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When the Jira commit checker is enforced (must contain JIRA issue key) either at Project or Repository level, it fails to identify valid keys from certain Jira project (like UTF-x, UTC-x, GMT-x etc) in the commit message and hence rejects the commit.

(Auto-migrated image: description temporarily unavailable)

Environment

All

Diagnosis

  • Check if JIRA Commit Checker is enforced at the project or repository level (requires admin permissions).Settings → JIRA Issues

  • Check if the JIRA Project key is one these formats : UTC, GMT, ISO, SHA, AES, UTF, RFC

Cause

This behaviour is due to the configuration parameter plugin.jira-commit-checker.project.key.ignore.

As mentioned in the document

The following project keys will be ignored when validating commit messages. The main use case for this are keys that look like Jira keys but are not in fact Jira keys (eg. UTF-8).

This value is a comma-separated list and is case-sensitive.

Solution

You can override the default values by specifically defining this configuration parameter in the bitbucket.properties file as per your requirement. In the example shown below we have remove UTF from the ignored values. Remember to restart Bitbucket for the configuration to take effect.

1 plugin.jira-commit-checker.project.key.ignore=UTC,GMT,ISO,SHA,AES,RFC
Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.