JIRA JQL: Blocked Coloring

I am trying to use the JIRA Agile Map Colors function, as well as the ScriptRunner plugin, to paint locked cards on a JIRA flex.

My definition is “blocked”: the ticket has a value for the “Blocked” field or is associated with an unauthorized ticket in relation to “blocked”.

The best I can do is the following JQL:

(Blocked is not EMPTY) OR issueFunction in hasLinks("is blocked by")

This finds tickets that are relevant for the Blocked field, and tickets that are associated with another ticket are associated with Blocked, but it will still color the card if all associated blockers are allowed.

Is there a way to find tickets related to unauthorized blockers?

I looked through the ScriptRunner Docs but found nothing.

+6
source share
1 answer

You can do it the other way around: find all the related issues that are marked as blocking and do not have a fixed resolution.

Example to find all unauthorized tickets with unauthorized blockers:

 issueFunction in linkedIssuesOf("resolution is EMPTY", "blocks") and resolution is EMPTY 
+1
source

All Articles