How do you find epics where all child issues are done with JQL?
On this page
To find epics where all child issues are done with JQL, native JQL is not enough, because it cannot compare an epic with its children. With Flexible JQL you can ask the epic itself: issuetype = Epic AND statusCategory != Done AND fjEpicChildCount > 0 AND fjEpicOpenChildCount = 0 returns open epics that have children and none left open.
This guide explains why the question is hard in plain JQL, gives queries for epics ready to close and for epics closed too early, and shows where to use them.
Why can’t native JQL find epics with all children done?
Native JQL tests one issue at a time. It can say parent = ABC-12, which lists the children of a single epic you already know, and it can say statusCategory = Done for those children. It has no way to say “show me epics for which every child matches”. The condition is about a relationship between two levels, and a JQL clause only sees one.
People hit this wall often. Atlassian Community has many threads with titles that ask for epics with all child issues resolved, epics with no open children, or parents whose children all share a status; three are listed in Sources. The workarounds that search results point to are a Marketplace app that adds JQL functions, an automation rule that moves the epic when the last child closes, or a field that automation keeps up to date and that you then search.
How do you find epics that are ready to close?
Use the count fields Flexible JQL writes onto each epic. Two of them do the work: fjEpicChildCount, the number of child issues, and fjEpicOpenChildCount, the number of children not in the Done category.
issuetype = Epic AND statusCategory != Done AND fjEpicChildCount > 0 AND fjEpicOpenChildCount = 0
Read it from left to right: open epics, with at least one child, where no child is left open. The fjEpicChildCount > 0 clause matters. An empty epic also has zero open children, and without the clause it would look finished.
The fields are searchable like any other field, so the query works in the issue navigator, in a saved filter, on a board and in a dashboard gadget. Because they are fields, not functions, they have no limit on how many issues they match.
What are the useful variants?
Once the counts exist, the neighbouring questions are one clause away. These are examples to adapt; replace ABC with your project key.
| Question | Query |
|---|---|
| Epics ready to close | issuetype = Epic AND statusCategory != Done AND fjEpicChildCount > 0 AND fjEpicOpenChildCount = 0 |
| Epics with nothing in them | issuetype = Epic AND statusCategory != Done AND fjEpicChildCount = 0 |
| Epics ready to close in one project | project = ABC AND issuetype = Epic AND statusCategory != Done AND fjEpicChildCount > 0 AND fjEpicOpenChildCount = 0 |
| Open children of epics that are already Done | issue in childrenWhereParent("issuetype = Epic AND statusCategory = Done") AND statusCategory != Done |
The last row answers the opposite problem: someone closed the epic while work was still open. childrenWhereParent takes a query for the parents and returns their children, so you see exactly which issues were left behind.
Two sibling questions have their own guides: epics and work items that have no parent, and issues that sat in one status for too long. For the functions Jira already ships, see the Jira JQL functions list.
How do you turn the query into something the team uses?
A query nobody opens does not help. Three habits turn it into a routine:
- Save it as a filter. Name it for what it asks, such as “Epics ready to close: ABC”. The Library in the workbench can create a Jira filter in one click.
- Put it on a dashboard. A filter results gadget with the filter shows the list to the people who can close the epics, for example at the end of a sprint.
- Use it in automation. An automation rule can run the filter on a schedule and post the list to a channel or comment on each epic.
Flexible JQL’s Library already holds a ready-made query for epics ready to close, among 44, which you can open, adjust and save as your own copy.
What does a worked example look like?
This is an example, not a customer story. A project has 12 open epics. Four have every child in Done, two have no children because someone created them as placeholders, and six still have work in progress. The ready-to-close query returns the four. The “nothing in them” query returns the two placeholders, which is a prompt to fill or delete them. A product owner reads the first list in a weekly review and closes four epics in a few minutes, instead of opening 12 epics to count children by hand.
Example Twelve open epics, sorted by their children
fjEpicChildCount > 0 AND fjEpicOpenChildCount = 0 separates “all done” from “nothing there”.
What limits should you know about?
- The epic counts refresh on Jira events, which can arrive up to about three minutes after a change, so a child closed seconds ago may not show yet.
- Indexed fields fill in the background after installation. Check the admin page for progress, and
fjIndexed = 1finds issues already covered. - Parent values on children are filled only when the parent is in the same project. For an epic in another project, use
childrenWhereParent. - Results follow the permissions of the person who runs the query.
- It is for Jira Cloud only, not Data Center or Server, and it has no AI features.
Doing this with advanced JQL functions for Jira Cloud
Flexible JQL for Jira adds 55 advanced JQL functions and 64 searchable fields to Jira Cloud, including the epic counts used here. It is built on Atlassian Forge and Runs on Atlassian, with no remote servers and no data egress. The indexed fields documentation explains how the fields are filled, and the getting started guide shows the workbench and the Library. The app is coming soon to the Atlassian Marketplace. To compare it with other apps that add JQL functions, read JQL functions for Jira Cloud: five JQL apps compared.
A printable one-page reference is the Jira JQL functions cheat sheet.
Sources
- Atlassian Community: All Epics with 100% Done filter to mark as done, checked 2026-12-01 (title only; the page body did not load)
- Atlassian Community: Get list of Epics where there are No Open child issues, checked 2026-12-01 (title only)
- Atlassian Community: Find Parents where all Child issues have specific statuses with JQL, checked 2026-12-01 (title only)
- Flexible JQL documentation: Indexed fields and sprint dates, checked 2026-12-01
- Flexible JQL documentation: Getting started, checked 2026-12-01
- Flexible JQL documentation: JQL functions, checked 2026-12-01
- Flexible JQL documentation: Limits, checked 2026-12-01
Frequently asked questions
Can native JQL find epics where all child issues are done?
Not in one query. Native JQL tests fields of the issue itself, so it can list an epic's children with parent = KEY, but it cannot ask whether every child of an epic matches a status. Community answers use automation or a JQL app for this.
How do I find epics that are ready to close with Flexible JQL?
Use a count field on the epic: issuetype = Epic AND statusCategory != Done AND fjEpicChildCount > 0 AND fjEpicOpenChildCount = 0. It returns open epics that have children and no child that is not Done.
Why do I add fjEpicChildCount > 0?
An epic with no children also has zero open children, so without that clause it would show up as ready to close. The clause keeps empty epics out of the list.
How do I find epics that are closed while some child issues are still open?
Use issue in childrenWhereParent("issuetype = Epic AND statusCategory = Done") AND statusCategory != Done. It lists the open children whose epic is already Done, which you can then re-open or move.
How quickly does the list update after a child is closed?
The epic counts are kept up to date by Jira events, which can arrive up to about three minutes later. A child closed seconds ago may not have reached the epic yet.
Related posts
- How do you find issues without subtasks with JQL in Jira Cloud?
- Advanced JQL apps for Jira Cloud: five compared
- JQL issues added to sprint after start, or removed: how to find them
- Jira JQL functions list for Jira Cloud, by what you want to find
- How do you find issues not commented on in the last 30 days with JQL?