GitLab: a merge request blocked for lack of a Jira issue key
With the Jira issues integration, a project can refuse to merge a merge request that does not name a Jira issue. The merge request then says To merge, a Jira issue key must be mentioned in the title or description; the API reports detailed_merge_status jira_association_missing, and the check's failure text is "The title or description must reference a Jira issue." (GitLab docs: Jira issues integration, checked November 19, 2026).
Where the rule comes from
- A Maintainer or Owner of an Ultimate project selects Require an associated issue from Jira under Merge checks in Settings > Merge requests.
- The check passes when GitLab finds an issue key in the merge request's title or description. It is inactive when the setting is off.
To see that a missing Jira key is what blocks a merge request: Merge Request (MR) Review Inbox for GitLab, a plugin for JetBrains IDEs, lists the merge checks from detailed_merge_status with the blocking ones first.
Why a key you wrote is not found
- By default GitLab matches a key in its usual form (the pattern is in
lib/gitlab/regex.rb), for exampleALPHA-1. - A prefix set in the integration changes what counts: with the prefix
JIRA#, GitLab matchesJIRA#ALPHA-1and no longerALPHA-1. Set it under Settings > Integrations > Jira issues > Jira issue matching (Jira issue prefix). - A regex there (Jira issue regex, RE2 syntax) replaces the default. A project whose Jira keys follow a different format may need one (see Atlassian's note on the project key format).
- The message names the title and the description, so put the key in one of them.
What to do
- Put the key in the title or description, in the form the integration matches, then reload the merge request.
- If the rule does not fit the project, a Maintainer turns the merge check off, or changes the prefix or regex under Jira issue matching.
GitLab merge requests in IntelliJ IDEA
Merge Request (MR) Review Inbox for GitLab, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, shows a merge request's merge checks before you merge: approvals, requested changes, unresolved threads, the pipeline, conflicts, and GitLab's other reasons from detailed_merge_status, with the ones that block the merge first, and the head pipeline with a link. The missing-Jira-key reason is one of those other reasons, so you see it before you try to merge. Reading is free; approving, commenting and merging are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
GITLAB is a trademark of GitLab Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitLab Inc. or JetBrains.
More: GitLab merge refused (405, 409, 422) · GitLab merge blocked by the title pattern (title_regex) · GitLab "Merge request must not be draft" · GitLab merge request not created (409, 422)