Forums

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

JQL question.

Kirill Abgarian
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!
April 8, 2022 edited

Is it possible to create JQL statement to select all epics with label 'Y', including all their children (stories/tasks) from project X?

Label 'Y' is applied only to epics, linked stories and tasks don't have it.

1 answer

1 accepted

0 votes
Answer accepted
Jesse Kona
Contributor
April 8, 2022

You need an app (like JQL Search Extensions) to do this. 

 

With the app, this search would work:

(issue in childrenOfIssuesInQuery("type = epic and labels = Y and project = X")) OR (type = epic and labels = Y and project = X)
Kirill Abgarian
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!
April 8, 2022

Thank you Jesse, good to know.  As the first step I'd like to understand how close I can get to my use case with standard Jira features.  Will start considering additional apps if there is no workable jql solution.

Like • Jesse Kona likes this
Jesse Kona
Contributor
April 8, 2022

Without an app, you can certainly return the children of an epic using the parentEpic field:

parentEpic = PROJ-411

However, you can only do it by using the epic's key.  I hope this helps.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events