I'm adding a pre-receive hook on my repository in Bitbucket.
I added the "Require commits to be associated with a JIRA issue" hook. It is provided by ScriptRunner.
But when I push the master branch the hook doesn't recognize the custom Jira issue key.
For example: my Jira issue key in the commit comment is "A123B-123" and the status is "Work".
I get the below errors when running "git push" .
remote: =====================================================================
remote: One or more JIRA issues from your commits not found by query (status in ("work")):
remote:
remote: Ref: 3240b5d895b - B-123
remote: =====================================================================
remote:
Anyone has the similar issue and knows how to resolve it?
Is there a particular reason your using a custom issue key?
ScriptRunner for Bitbucket Server only supports the official JIRA issue key pattern described here.
AI is reshaping the dev experience, with faster builds but adding more friction. See what 3,500 developers and managers say about productivity, tools, and team alignment in Atlassian’s State of Developer Experience report 2025.
Explore the report
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.