Forums

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

JQL - find all issues that are child of epics with custom field

Robert Rzad
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!
January 10, 2025

Hi all,

 

I have ~100 epics that have Custom Field = X, or Y or Z. I created a simple query that is listing all those epics that I want to see, there is no problem with that, but now I want to see all child issues of those epics. How can I do that?

I searched through multiple threads here but nothing was helpful :(

EDIT: Forgot to mention - Custom Field is a field that is present only on the Epic level, it is a dropdown with 3 possible choices.

I'm using JIRA cloud, I do not have any extensions installed.

Epics are spread through multiple Projects with various assignees, reporters etc.

3 answers

0 votes
Hannes Obweger - JXL for Jira
Atlassian Partner
January 10, 2025

Hi @Robert Rzad

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 a "parent 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
Atlassian Partner
January 10, 2025

... and 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:

epics-with-status.gif

(I'm using the epic status here, but it would work the same way with any other field.)

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!

Like Robert Rzad likes this
Robert Rzad
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!
January 10, 2025

Thanks!

 

You're right that it's not as easy as it sounds. Shame I might need some plugins for that but appreciate it nevertheless.

0 votes
Laura Pellizzari
Contributor
January 10, 2025

Hi, it is possible with "Scriptrunner enhanced search" App installed and use the function  issueFunction in childrenOf("filter= 1234"), where Filter 1234 is the list of your Epics.

Unfortunately in cloud is not possible without this App, since the standard filter does not support "issuefunction" search.

regards

Laura

0 votes
Anahit Sukiasyan
Community Champion
January 10, 2025

Hi @Robert Rzad

Welcome to the Community!

This JQL may help you to modify your query to include the child issues:

"Epic Link" in (epic_key_1, epic_key_2, epic_key_3, ...) AND "Custom Field" in (X, Y, Z)

Replace epic_key_1, epic_key_2, epic_key_3, ... with the actual keys of the epics you're interested in. If you already have a query that retrieves the epics, you can combine it with this to list the child issues.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events