Hi,
I'm struggling to create a query that will return a list of sub-tasks that are blocking other sub-tasks that have a different parent. For example:
- Task A
- Sub-task A1 - blocks Sub-task B1
- Sub-task A2 - blocks Sub-task A3
- Sub-task A3 - is blocked by Sub-task A2
- Task B
- Sub-task B1 - is blocked by Sub-task A1
Result should be Sub-task A1 since it's blocking Sub-task B1. Sub-task A2 would not be included in the result since it's blocking a sub-task with the same parent.
I have ScriptRunner installed.
Thought we were on the right track with the following query, but it doesn't return results:
project = ProjectXYZ AND resolution = Unresolved AND issueLinkType = blocks AND parent not in parentsOf("issueFunction in linkedIssuesOf('issueType = Sub-task', 'is blocked by')") ORDER BY priority DESC
Any suggestions appreciated!