I am trying to automate my filters to get list of issues within multiple epics. Currently i have hardcoded the epic numbers in the JQL. I am looking for a way to automate or dynamically get this information and avoid manual addition of epic numbers each time my team creates a new epic.
I am able to get the list of epic names dynamically by referring to matching label name. But i am not able to get to issues inside the epics. can u please help here.
There's no native JQL option for this, as it's sub-querying. IE...
You'll need an App to extend the power of JQL to do this - such as...
---
Natively, you'd need to have metadata at the child issue level that JQL could refer to.
You could do this using Automation - then you could have multiple rules such as...
...then you could refer to the Label in JQL as it's at the child level.
---
Let us know your thoughts! If you think the Automation Rule(s) would work, and you'd like help creating them, we'd be happy to help :)
Ste
Hi @Preeti Singh,
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.
For one-off use cases, I'd recommend exactly what you're doing, i.e., to first search for the relevant the epics, and then list the epic keys in a "parent in (KEY-1, KEY-2, ...)" query.
If you want to run your search dynamically, without manually "stitching" two queries together, you'll need extra tooling:
Hope this helps,
Best,
Hannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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'd create a sheet with all issues that are potentially relevant to you, enable the default issue hierarchy (that's just one click), and then use JXL filtering capabilities to narrow down to the issues that you care about:
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.