I'm trying to use JQL, and Script Runner functions, to construct filters which give me a list of issues (typically stories) in a project which have a link (or links) to other issues where the linked issues are unresolved.
It's the last bit I'm struggling with. I can get the list of stories which have links easily enough with:
project = KBP AND issuetype = Story AND issueFunction in hasLinks("is blocked by")but this shows me all stories which have that link relationship irrespective of whether or not the linked issue has been resolved.
And, of course, adding
AND resolution = Unresolved
simply selects the unresolved issues in the returned filter, rather than the issues with unresolved *linked* issues.
Any advice?