Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Find all stories in specific statuses that are children of epics in specific statuses

Dylan Willis April 4, 2023

Jira Cloud

I need to be able to find stories in specific statuses that are linked to epics in specific statuses in a specific project 

 

I'd like the following to actually work in cloud: 

Project = XXX and linkedissue('project = xxx and issuetype = epic and status in (1, 2, 3)) and issuetype = story and status in (4,5,6)

3 answers

1 vote
Hannes Obweger - JXL for Jira
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
April 4, 2023

Hi @Dylan Willis

welcome to the community! 

Unfortunately, this is trickier than one might think; as a "hierarchical query", it would really require some kind of "join" or "subquery", which isn't available in plain Jira/JQL.

A few directions forward:

  • If it's a one-off thing, you could first query the relevant epics, and then use the keys of these epics in a second query, in an ""Epic link" in (KEY-1, KEY-2, ...)" clause.

If you want to run your search "dynamically", without manually "stitching" two queries together, you'll need extra tooling:

  • You might be able to use Jira Automation to "propagate" epic information down to the epic's children, and then use the respective field(s) on the children to include them into your filter. Obviously, this will add a fair bit of complexity to your system.
  • There's different apps from the Atlassian Marketplace that can help with that. First, 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 well.
  • 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 of searching 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
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
April 4, 2023

Just to expand on the last point, this is how this would look in the app that my team and I are working on, JXL for Jira. Put simply, you create a sheet with all issues that could be potentially relevant, enable the default issue hierarchy (that's just one click), and then hide all issues that aren't part of the given hierarchy (that's another one click):

epics-with-children-from-different-project.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.

Any questions just let me know!

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.
April 5, 2023

Hi @Dylan Willis 

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

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

In the app where my team works, JQL Search Extensions for Jira, you can use this query to find all your stories in specific statuses that are linked with epics from project X and other specific statuses.

issue in linkedIssuesOfQuery("type = epic and project = x and status in (1, 2, 3)") and issuetype = story and status in (4,5,6)

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
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.
April 4, 2023

Hi @Dylan Willis 

Welcome to the community !!

Not sure if this can be achieved by out of the box JQL.

I believe you will need a third party app which enhances JQL functionality or you can also try out hierarchy focused apps to meet this requirement.

We have built an app for the same use case.

Issue Hierarchy Reports 

Try it out and meet functionalities such as:

- Sum up values to see overall progress for your Issue Hierarchy

- View the full hierarchy of linked issues, Portfolio/Advanced Roadmaps, Epics, and Subtasks

- Apply filters to put the focus on the relevant data only

- Excel like editing for all the values right on the report and see real time progress updates

- JQL filter for child issues

- Export to a CSV file

- Embedded Epic Hierarchy on Issue Screen

- Dashboard Gadgets

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

Links HIerarchy - Summary Report.PNGLinks Hierarchy Initiative Child Filter- Summary Report.PNG

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events