APP-20 is "blocked by" APP-12. Someone drags APP-20 to Done anyway. Jira lets them: in Jira Cloud an "is blocked by" link is information, not a rule.
The request to enforce it, JRACLOUD-43369, has 518 votes and has been open since 2015.
Here is what you can do, from built-in to add-on.
1. Sub-tasks: the built-in condition
For sub-tasks there is a native answer. In a company-managed workflow, edit the transition to Done and add the Sub-task blocking condition. Pick the statuses the sub-tasks must be in. Until they are, the transition is hidden.
It covers sub-tasks only. It does not look at linked issues or at the child issues of an epic.
2. Automation: move it back
Create a rule:
- Trigger: Issue transitioned to Done.
- Condition: Related issues condition, linked issues of type "is blocked by", some match the JQL
statusCategory != Done. - Action: Transition the issue back, and add a comment that says why.
The catch is timing. Automation runs after the transition, so the issue was Done for a moment: notifications went out, the resolution date was set, and any "on Done" integrations fired.
3. Make it visible
A saved filter for the daily stand-up:
statusCategory = Done AND issueLinkType = "is blocked by" AND resolved >= -7d It lists recently closed issues that have a blocker link. It can't tell whether the blocker is still open (JQL can't look across the link without an app), but it gives you a short list to check.
4. A workflow validator
A validator refuses the transition before anything changes, and tells the user why. Jira has no built-in validator for linked issues, so this needs an app. ScriptRunner and Jira Misc Workflow Extensions can do it with a script or expression, if you already have them.
Disclosure: I make a small single-purpose one, GuardPulse for Jira. You add its validator to the Done transition and tick what to check: blocking links, sub-tasks, epic children. A blocked user sees "Close the blocking issues first: APP-12, APP-15."
Limits: it refuses the transition but doesn't hide the button, it lists at most 10 keys per check, and you must remove its rules from workflows before uninstalling it.
Step-by-step guide: How to block closing a Jira issue until its blockers are done.
Summary
| Need | Use |
|---|---|
| Sub-tasks must be done first | Built-in condition |
| Linked blockers, "fix it after" is fine | Automation |
| Linked blockers, must never close | A validator app |
