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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,557,138
Community Members
 
Community Events
184
Community Groups

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

Dylan Willis
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!
Apr 04, 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.
Apr 04, 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.
Apr 04, 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.
Apr 05, 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_Support
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.
Apr 04, 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