JQL Query to find child issues of an Epic
"Epic Link" = ABC-123
this will give you all stories/tasks associated w/ the specific epic
JQL Search Extensions for Jira & reports can help you to get all issues with sub tasks for epic
for example
Following query will get all issues and sub tasks related to the epic id "test-24" , please see the attached image.
issue in allIssuesInEpic(test-24)
here is the documentation link for all queries.
https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/30497099/JQL+Reference+Server#JQLReference(Server)-LinkedIssueType
Hey Jack,
this doesn't give me the sub-tasks tho.
Any idea how to get those?
Thanks
You can’t achieve that out of the box. There are many posts in the community discussing this matter. Here is a good example that might help explain options - JQL-Query-Sub-Tasks-Parent-Epic-or-User-Story
basically you’ll need an add-on to achieve this.
I found how to do it!
there's a command called parentEpic, it does exactly this:
parentEpic in (EPIC-1, EPIC-2)
it's built into Jira, no need for external add-ons
ahhhhhh yes that was added awhile back. if you know the epic id that works well
This just return the epic in the parentheses to me. Not the child issues.
parentEpic is strange function. I don't see it in documentation page From other side there is function "Epic Link" = YourEpicKey that should return list of children issues.But it returns epic's children only, not sub-tasks if they are present for Epic,
Achieved with the help of Chat GPT:
I needed to embed a table into Confluence using JQL, but with the Epic from another project and only viewing the sub-tasks under it. Basically a risk log for RAID tracking.
Here’s the JQL query that worked for me:
project = "Project Name" AND issuetype = Paste Issue Type AND (("Epic Link" = EPIC-##) OR (parent = EPIC-##)) ORDER BY created DESC
This query combines both the `Epic Link` and `parent` filters to ensure all relevant issues are captured. Just replace `"Project Name"`, `Paste Issue Type`, and `EPIC-##` with your specific project name, issue type, and Epic key.
---
Hey @Aaron Thomas , do you know in a Jira filter what portion of your query I would run to get the children and grandchildren of an Epic or a task ? My Jira (on the web) keeps telling me that ("Epic Link") will be replaced by PARENT soon
It looks like you're new here. Sign in or register to get started.