I want to filter all issues in a AA project that are blocked (have "is blocked by" link).
Problem: ScriptRunner Enhanced Search does not have hasLinks() function. So hasLink("is blocked by") is not possible.
I've tried a couple options. None of which produce satisfactory result.
1. linkedIssuesOf() times out because it has to query a lot of possible blockers
project = AA linkedIssuesOf("project in (BB, CC, DD) and status != Done", "blocks")We have a lot of projects and any issue in any project could block AA issue.
2. I can't find how to filter 'is blocked by' in issueFieldMatch()
issueFunction in issueFieldMatch("project = AA and status != Done", "issuelinks", ".+")
Does anyone know how to get blocked issues in Script Runner Enhanced Search?