linkedIssuesOf()

Description:

Searches issues linked to the given subquery. Additionally you can further refine your query by specifying a link type.

Note:
Since you need to enclose the provided subquery using doble quotes, you must to escape any doble quotes using in the subquery by preceding a backslash after the double quotes, alternatively you can use a single quote in some cases.

 Let's see an example...

(error) This will not work

issue IN linkedIssuesOf("status = "Under Review" and type = Bug")

Searches issues linked to Bug that are currently being reviewing

(tick) This will work perfectly

issue IN linkedIssuesOf("status = \"Under Review\" and type = Bug")

Searches issues linked to Bug that are currently being reviewing

issue IN linkedIssuesOf("status = 'Under Review' and type = Bug")

Searches issues linked to Bug that are currently being reviewing


Syntax

linkedIssuesOf(subquery)
linkedIssuesOf(subquery, link)

Where 'link' can also be any of the existing system links:
'is Epic of', 'has Epic', 'jira_subtask_inward' and 'jira_subtask_outward'

Available sincev1.8.0-RELEASE
Supported fieldsIssue
Supported operatorsIN , NOT IN
Unsupported operators

= , != , ~ , !~ , > , >= , < , <=

IS , IS NOT , WAS , WAS IN , WAS NOT , WAS NOT IN , CHANGED

Examples:

• Find issues linked to 'Open' Bugs:

issue IN linkedIssuesOf("type = Bug AND status = Open")

• Find 'In Progress' issues blocked by unresolved Impediments

status = "In Progress" AND issue IN linkedIssuesOf("type = Impediment AND resolution IS EMPTY", "blocks")

• Find issues (excl. subtask) on EMEA project linked to any Requirement

project = EMEA AND issue IN linkedIssuesOf("type = Requirement") AND type NOT IN subTaskIssueTypes()

Real World Use Cases:

· JRASERVER-25640 - JQL function for showing all issues linked to any issue by a given issue link type (by Chris Mountford)
·
JQL query to see all Tests which are linked to all Stories in current Sprint (by SchuriiK at ATLASSIAN Community)
·
JQL Query Assistance - Linked Issues (by jprentice at ATLASSIAN Community)

JQL Function Reference