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.
The result is not what you expected? The number of returned issues feels too low?
By default, the maximum number of issues that will be returned by the JQL subquery, and thus can be processed by the logical expression is 1000.
To ensure the performance of your entire Jira instance, we limit the execution of the JQL function in terms of issue count and execution time. Please refer to your admin if you need to change the configuration.