Using just Jira JQL (no add-ins), I am trying to write a query that finds all project tickets that have a Blocked status OR tickets that are linked to "is blocked by" issues that aren't Done ("Won't Do" is a classified as a Done status). Here is my query:
project = XYZ AND status = Blocked OR (issueLinkType in ("is blocked by") and Status NOT IN (Done, "Won't Do"))
The issue that I am running into is that blocking Jira tickets that are "Done" are showing up when I don't need to see those. Does anyone have any suggestions?