Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to write query for all subtasks related to an epic

Keven Pepin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 9, 2022

Hi,

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 ?

 

Thanks

2 answers

0 votes
Julien Peyrade _ Elements
Atlassian Partner
September 12, 2022

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 -Relational-
Community Champion
September 9, 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
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events