Retrieve all child and linked work items of an Epic in Jira Cloud
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
This guide provides a comprehensive approach to retrieving Epics, their child work (such as Stories), nested sub-tasks (usually children of the Stories), and linked work (such as "relates to" or "blocked by") via JQL (Jira Query Language).
This is particularly useful for project managers and team leads who need a clear overview of all tasks associated with an Epic, whether linked as child work or otherwise.
Solution
Retrieve an Epic's Linked work items
To get linked issues of an Epic or any issue type, use the following JQL: project = projectName AND issue in linkedIssues("IssueID")
Retrieve an Epic's Child work items
To get the child issues of an Epic, use: project = projectName AND parent = "EpicID"
Retrieve Story/Tasks and Sub-tasks under an Epic
To get the tasks and subtasks under the Epic, use the JQL operator parentEpic: parentEpic = "workItemkey"
This query will return an Epic's child work items and nested sub-tasks of those directly linked child work items.
Retrieve all work items linked to an Epic
The following JQL query will retrieve the Epic, its direct children, nested sub-tasks, and linked issues:
project = ProjectName AND (issue in linkedIssues("IssueKey") OR parentEpic = IssueKey) order by created DESC
Was this helpful?