Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to block commits or pull requests in Bitbucket Cloud if commit messages don’t contain valid Jira

Purnendu Chavan August 1, 2025
Hi Community,
We are using Bitbucket Cloud for source code and Jira Cloud for issue tracking.
Requirement:
  • We want to enforce that every Git commit message contains a valid Jira issue key
  • If the key is missing or invalid (i.e., the issue doesn’t exist in Jira Cloud), then:
  • The commit or pull request should not be allowed.

 

The Problem:
  • Currently, there’s no built-in way in Bitbucket Cloud to prevent developers from:
    • Committing without a Jira issue key
    • Creating pull requests with such commits

 

What we’re looking for:
  • A way to block commits or PRs automatically if any commit message:
    • Doesn’t include a Jira issue key
    • Contains a non-existent or invalid Jira key

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events