Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to write query for all subtasks related to an epic


I am trying to create a table in confluence of all Userstory related to an Epic and i would like to see all subtasks related to each Userstory.


For now, i use : "Epic Link" = AWD-15, this show me all the userstory related to the epic AWD-15.


But how to add all the subtasks ?



2 answers

0 votes

Hello @Keven Pepin 

The following JQL will give you the subtasks of your Epic : 

linkedIssue = [ISSUE KEY OF YOUR EPIC] and issuetype = sub-task

You will have to replace "sub-task" by the actual subtask type used in your project.

0 votes
Alex Koxaras Community Leader Sep 09, 2022

Hi @Keven Pepin and welcome to the community!

Do you by any chance have scriptrunner installed on your jira instance? If so, then you could do:

issueFunction in subtasksOf("Additional JQL search here to look for the parent issues you want to define")

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Confluence

Watch 4 Confluence apps compete for Best App Demo in September's Appy Hours

Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...

596 views 0 13
Read article

Atlassian Community Events