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

Jira issues that are in an epic with certain label

I am trying to write a Jira JQL filter that combines parentEpic with a label or a filter. The below JQL works:

project=TML AND parentEpic in (TML-2731, TML-3053)

But then I need to know the IDs of the epics, and these only live for few weeks. Labels live much longer, and I can easily search for epics with a label:

project=TML AND issuetype=Epic AND labels in (IndEquip, IndAuto)

But now I would like to use the returned list of epics as input to the parentEpic function, but this does not work:

project=TML AND parentEpic in (labels in (IndEquip, IndAuto))

Are such nested queries in general not possible? Is there any extension that makes it possible?

3 answers

Hi @Matthis Thorade

just to add to Mauricio's answer, another option is to go via one of the more hierarchy-focused apps on the Atlassian Marketplace. These apps usually don't rely on "native" JQL to figure out parent/child relationships, but have their own ways of doing so.

As an example, here's how this would work in the app that my team is working on, JXL for Jira:


You can either view and edit your issues directly in JXL, export your issues in various formats, or use JXL to trigger a number of Jira operations. 

Hope this helps,



Hi @Matthis Thorade 

As you're on Jira Cloud, the correct answer is to get an app that provides JQL extensions you're looking for.

With standard JQL, you can only get a list of issues and export them to Excel for further processing. This works if you want to do a one-off analysis. If your use case is more dynamic than that, look beyond standard Jira.

Standard JQL doesn't easily allow it, but you can quickly find the results using our professional indexing service JQL Search Extensions

You can use this query to filter your epic parents that have a label in IndEquip or IndAuto

issue in epicsOfChildrenInQuery("project = TML") and labels in (IndEquip, IndAuto)

 Check out the documentation for more examples.
I hope this helps!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,426 views 37 44
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you