Forums

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

JQL: find Epics, which children are under a particular condition

Anita Sudan
Contributor
February 23, 2023

Hello, 

 

I have a JQL question:

I need to find all Epics, which children are under a particular condition.

So for example, I need to get all epics which children tasks or stories have label "creative"

Would appreciate if you help me with the JQL!

Thanks a lot!

 

4 answers

2 accepted

2 votes
Answer accepted
Hannes Obweger - JXL for Jira
Atlassian Partner
February 23, 2023

Hi @Anita Sudan

Unfortunately, "plain" Jira isn't too great with searching across issue hierarchies, so to the best of my knowledge, you'll need extra tooling to solve your use case. A few directions forward:

  • You may be able to "propagate" the information from the children up to the parent using Jira Automation, and then filter by the respective field on the parent.
  • There's different apps from the Atlassian Marketplace that can help with that. As Florian said, there's a number of apps that extend JQL by additional functions, including hierarchy-related functions. I've used JQL Search Extensions a few times and it works great, but there are others, too. 
  • Alternatively, you could try one of the more hierarchy-focused apps from the Marketplace. These apps typically have their own ways of figuring out parent/child relationships between issues, and provide more powerful ways to define and navigate through issue hierarchies. I myself work on such an app, in which your use case would be easy to solve; I'll provide more details below.

Hope this helps,

Best,

Hannes

Hannes Obweger - JXL for Jira
Atlassian Partner
February 23, 2023

Just to expand on the last point, this is how this would look in the app that my team is working on, JXL for Jira; TLDR: You'd create a sheet with your relevant issues, enable the default hierarchy (that's just one click), and then use JXL's various filtering capabilities to narrow down your list of issues:

epics-with-stories-with-label.gif

Once you have your list of issues, you can work on these directly in JXL (much like you'd do in e.g. Excel or Google Sheets), trigger various operations in Jira, or export them for further processing.

As said above, there may be other apps that help with this, too. You may already know that you can trial any app for free for 1 month, and depending on the size of your size, it may be free forever. So if an app is an option for your, perhaps try a few and see which works best for you.

Any questions just let me know!

Anita Sudan
Contributor
February 24, 2023

Thanks a lot for your help!

I'll look up some apps then

Like • Hannes Obweger - JXL for Jira likes this
1 vote
Answer accepted
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 23, 2023

Hi @Anita Sudan 

Due to Cloud limitation I'm not sure it's possible. You can achieve part of that using an app such as Scriptrunner with epicsof function.

https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-enhanced-search/jql-functions

Note that only works when running the query, last time I used it, saving the query only save the result of the query not the query itself, so if there is a new epic that match the JQL it will not be return by the filter you will have to run the query again.

 

Regards

Anita Sudan
Contributor
February 24, 2023

Thanks!

1 vote
mauricio.groth
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 24, 2023

Hi @Anita Sudan

I’m Maurício, a support engineer at Digital Toucan and I’m here to help you.

Unfortunately, using JQL of Jira, you’ll not be able to do it.

As an alternative to what Hannes said, you could check the app where my team works, JQL Search Extensions for Jira, and use this query to find all your epics that have tasks or stories where the label is "creative"

issue in epicsOfChildrenInQuery("type in (Story, Task) and labels = creative")

Please contact our support if you have any other questions about this query.

We’ll be happy to help you!
Best regards,
Maurício

0 votes
Rahul_RVS
Atlassian Partner
February 26, 2023

Hi @Anita Sudan 

As mentioned by other community members an app can help to get this data.

If you are fine with it, you can try out our add-on.

Issue Hierarchy Reports 

The app will show you the default Epic Hierarchy and also let your filter on the child issues using JQL.

Disclaimer : I work for the vendor who built this app

Epic Hierarchy - Child Issue JQL.PNG

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