Forums

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

Adjusting Jira Query JQL to find epic parent for subtasks after epic link is removed

irianto.p.b
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!
December 4, 2023

I want to know how I can adapt the JQL to find issue, where currently my Jira structure is

epic>task>subtask.

 

Previously, to get subtask under certain epic, I use query like:

epic link in (epic name) and type in (subtask)

But after epic link is removed, all are changed to parent. However, the parent for subtask is not the epic but the task.

 

So if I want to find the same query as above it will be very complicated, it became:

parent in (all tasks id in the epic) and type in (subtask)

 

It is complicated if I have many tasks under one epic.

 

How to adjust/improve the said query to be easier after the recent adjustment of "epic link" removal? 

2 answers

1 accepted

0 votes
Answer accepted
Fazila Ashraf
Community Champion
December 5, 2023

Hi @irianto.p.b 

Welcome to community!

For this use case, if the epic is ABC-123, try the JQL -> parentEpic = "ABC-123"

0 votes
irianto.p.b
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!
December 5, 2023

It works! thanks a lot for your help

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events