Forums

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

Jira Query - Need to have list of Open Epics + Stories under these Epics

Shajahan A
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!
November 16, 2022

Jira Query - Need to have list of Open Epics + Stories under these Epics

3 answers

0 votes
Madhu_RVS
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.
November 17, 2022

Hi @Shajahan A 

Welcome to the community !!

For a readymade solution, if you are fine with a mktplace app, you can try out our add-on to visualize and manage your Epic Hierarchy. 

Agile Tools : Epic Tree, Links Tree, Time in Status & Worklogs

Disclaimer : I am part of the team which developed this app

Epic Hierarchy - Child Issue Filter.png

0 votes
Hannes Obweger - JXL for Jira
Atlassian Partner
November 16, 2022

Hi @Shajahan A

welcome to the community!

Another option would be to go with one of the hierarchy-focused apps from the Atlassian Marketplace. These apps have their own, optimised ways of dealing with Epic/Story relationships and offer more powerful search capabilities.

I can only speak for the app that my team is working on, JXL for Jira - but here, your use case would be trivial to solve:

  • Create a sheet that includes any open epics, plus any potential stories below these epics, e.g. with a JQL statement like this: (issueType = "Epic" and statusCategory = "Open") OR issueType = "Story". Don't worry too much about the parent/child relationships; JXL will sort this out for you. 
  • In JXL, enable the default hierarchy. That's a one-click operation.

That's it - the resulting view shows your open epics, with their stories below them. This is how this looks in action:

open-epics.gif

This is actually a pretty simple scenario, and you can model queries that are much more complex. 

It's worth noting that there are several other hierarchy-focused apps, which may or may not offer similar capabilities. You may already know that you can trial any app for free for 1 month (and depending on the size of your site, it may be free forever) - so perhaps try a few and see which solves your use cases best.

Best,

Hannes

0 votes
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.
November 16, 2022

Hi @Shajahan A 

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 find your open epics that have a story or the stories that have an open epic. 

issue in epicsOfChildrenInQuery("type = story") and status = open or issue in childrenOfEpicsInQuery("status = open") and type = story

Check out the documentation for more examples.

If you have any other questions, please contact our support. We’ll be happy to help you!
Best regards,
Maurício

Suggest an answer

Log in or Sign up to answer