This JQL function can be used to search for issues that have a certain link to issues that satisfy the JQL subquery.
linkedIssuesOf(subquery) #Output: Issue list
Variant where you can additionally specify only certain link types you want to allow.
linkedIssuesOf(subquery, linkTypes) #Output: Issue list
Variant where you can additionally specify a minimum of issues that need to be linked, fulfilling the given link types.
linkedIssuesOf(subquery, linkTypes, minimumLinked) #Output: Issue list
Imagine the following example:
The computation of that JQL would be as follows:
- Grab all issues that fulfill the JQL "project = WEB" and take their linked issues → SOF-1, SOF-2, SOF-3, SOF-4, SOF-5
- Only grab the issues linked with link type "blocks" → SOF-1, SOF-2, SOF-3
- Only grab those issues where at least 2 issues are linked to the same issue → SOF-1, SOF-2
So the final result of that JQL would be SOF-1 and SOF-2.