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?
Try this instead
project = ABC AND hasLinks = "is blocked by"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried this one?
project = AA AND issueFunction in hasLinks("is blocked by")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I've mentioned in my question, that is the problem I want to solve - ScriptRunner Enhanced Search does not have hasLinks() function. So hasLink("is blocked by") is not possible.
I'm looking for a workaround.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, sorry! Try this one instead:
project = AA AND issueFunction in linkedIssuesOf("status != Done", "blocks")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried that as well.
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")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.