Forums

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

JQL: retrieving all epics, stories and sub-tasks with a label

Jacqueline Goh
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!
February 3, 2023

Hello, I need to create a filter that extracts all epics (and its stories and tasks) and stories that has a specific label. 

labels = xyz  

It only returns the top-level epic and stories, not the stories and tasks for the epics.

How can I modify my query to include the stories and tasks under each epic?

 

1 answer

0 votes
Magdalena Zhisheva
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2023

Hi @Jacqueline Goh ,

You can try this one:

labels = "xyz" and "Epic Link" is not EMPTY or issuetype = Epic and labels = "xyz"

If you want just to have the results with every one issue, which has the label, then try with labels = "xyz".

Hope it helps!

Jacqueline Goh
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!
February 3, 2023

Thank you @Magdalena Zhisheva 

I tried your query and it only extracts the epic, not its story or tasks. 

The other stories without epic are not picked up as well. 

Is there a simpler way to structure the query to recursively : 

labels = "xyz" and epic_link in (...), where ... are the epics with the labels

Like Javier Perez de Arce likes this

Suggest an answer

Log in or Sign up to answer