This is partially possible to implement for JIRA Cloud using (paid) Jql Search Extensions for JIRA plugin:
- Red (blocked):
linkType = "is blocked by" AND linkedIssueStatusCategory in ("To Do","In Progress")
- Blue (blocker):
linkType = blocks AND linkedIssueStatusCategory in ("To Do","In Progress")
- Green (unblocked):
linkType = "is blocked by" AND linkedIssueStatusCategory not in ("To Do","In Progress")
But this plugin's limitation is we can't check linkedIssueStatusCategory
only for issues of some linkType
- instead check applies to all linked issues. This means some cards which have links of more than one type will have wrong colour. For example:
- if issue has 1 "is blocked by" link to "Done" issue and 1 "blocks" link to "To Do" issue - it'll have Red colour instead of Blue
- if issue has 1 "is blocked by" link to "Done" issue and 1 "relates" link to "To Do" issue - it'll have Red colour instead of no colour
If it's better to see possibly-not-blocked issues as not Red, then we can use this instead:
- Red (guaranteed to be blocked):
linkType = "is blocked by" AND linkedIssueStatusCategory != Done