How do you find issues without subtasks with JQL in Jira Cloud?
On this page
To find issues without subtasks with JQL in Jira Cloud, you need more than native JQL offers, because Jira Cloud cannot search for the absence of subtasks. With Flexible JQL, issue in withoutSubtasks("status != Done") AND type = Story returns open stories that have no subtasks, and it works in filters, boards and automation.
This guide explains why the native query fails, gives queries you can paste, and lists the limits you should know before relying on them.
Why can’t Jira Cloud find issues without subtasks?
Because the subtasks field is not searchable. Atlassian’s public request JRACLOUD-67108, titled “JQL to filter issues with/without subtasks / child issues”, states that the field is sortable but not searchable and asks for a function similar to hasSubTasks(), which it says exists only through a third-party add-on on Jira Server. When we opened it on 2026-11-28 it was a Suggestion with status Gathering Interest, resolution Unresolved, and the workaround field said None.
So the questions teams ask stay unanswered in the search bar: which stories were never broken down, which tasks still need a plan, which parents have subtasks that nobody closed.
What can native JQL do instead?
Native JQL can exclude subtasks from a result, for example with issuetype in standardIssueTypes(), but that only hides subtasks from the list. It does not test whether a parent has any. A Jira Automation rule or a manual board review can answer the question once, but neither gives you a filter you can put on a dashboard.
What JQL finds issues without subtasks with Flexible JQL?
Use withoutSubtasks. Like Jira’s own functions, it is used with issue in, takes a JQL query inside the brackets and can be combined with any other JQL. These queries are examples to adapt, with ABC as a project key.
| Question | Query |
|---|---|
| Open stories with no subtasks | issue in withoutSubtasks("status != Done") AND type = Story |
| Stories in one project with no subtasks | project = ABC AND type = Story AND issue in withoutSubtasks("project = ABC") |
| Issues that have subtasks | issue in withSubtasks("project = ABC") |
| The subtasks of a set of issues | issue in subtasksOf("project = ABC AND type = Story") |
| Parents of subtasks that match a query | issue in parentsOfSubtasks("status = Blocked") |
The first query follows the example in the Flexible JQL documentation. Check the others in the workbench before you save them, because the workbench shows each function’s arguments and checks the query in plain language.
Example Which parents each function returns
- ABC-11 Story: guest checkoutwithSubtasks
- ABC-14 Subtask: card form
- ABC-15 Subtask: error states
- ABC-12 Story: saved addresseswithoutSubtasks
- ABC-13 Story: order receiptwithoutSubtasks
How do you count subtasks instead?
For counts, use the indexed field fjSubtaskCount. Flexible JQL fills these fj fields in the background after installation, with no setup, so you can use them in filters, in ORDER BY and on boards:
fjSubtaskCount > 2
fjSubtaskCount = 0 AND type = Story ORDER BY created
The first query finds issues with more than two subtasks, which often means a story that is too large. The second sorts stories with none by age. Indexed fields match any number of issues, so fjSubtaskCount = 0 is the better choice on a large site that hits the 1,000-issue limit. Until indexing is complete, functions that rely on the index refuse to answer instead of returning an answer that silently misses issues, and fjIndexed = 1 finds the issues already covered.
How do you use these queries on a board or dashboard?
Save the query as a filter and use that filter anywhere. In the Flexible JQL workbench you can turn a query into a Jira filter in one click, keep it private or share it through the library and then point a board, a dashboard gadget or an automation rule at it. A practical set of filters for a planning meeting:
- Stories without subtasks in the next sprint.
- Stories with subtasks, sorted by
fjSubtaskCount, to find work that is too large. - Stories without subtasks that have been in progress for a week.
Jira delivers change events with a delay of up to about three minutes, so a new subtask can take a few minutes to show up in a saved filter.
What limits should you know about?
withoutSubtasks,withSubtasksandparentsOfSubtasksreturn at most 1,000 issues in their default mode and stop with an error above that, with a suggestion to addAND project = ABCto the outer query or to usefjSubtaskCountinstead.subtasksOfreturns a condition and has no such limit.- Results refresh when Jira sends events, so allow a few minutes.
- User arguments are Atlassian account IDs, which the workbench picker inserts for you.
- It is for Jira Cloud only, not Data Center or Server.
- Comment visibility keywords and team functions are not available.
Treat the 1,000-issue limit as a reason to narrow the inner query to one project or status, or to switch to the indexed field.
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. It is built on Atlassian Forge and Runs on Atlassian, with no remote servers and no data egress. The JQL functions guide lists every function with examples, and the indexed fields guide explains fjSubtaskCount. The app is coming soon to the Atlassian Marketplace. For a comparison of apps that add JQL functions, read JQL functions for Jira Cloud: five JQL apps compared.
Sources
- Atlassian: JRACLOUD-67108, JQL to filter issues with/without subtasks / child issues, checked 2026-11-28
- Flexible JQL documentation: JQL functions, checked 2026-11-28
- Flexible JQL documentation: Indexed fields, checked 2026-11-28
- Flexible JQL documentation: Limits, checked 2026-11-28
Frequently asked questions
Can native JQL find issues that have no subtasks?
No. In Jira Cloud the subtasks field can be sorted but not searched, and Atlassian's request JRACLOUD-67108 for a function that finds issues with or without subtasks is still unresolved. Native JQL can exclude subtasks from results, but it cannot test whether a parent has any.
How do I find stories without subtasks in Jira Cloud?
With Flexible JQL, use issue in withoutSubtasks with a query inside it, for example issue in withoutSubtasks("status != Done") AND type = Story. The function returns the issues from that query that have no subtasks.
How do I find issues that do have subtasks?
Use the withSubtasks function in the same way, or search the indexed field fjSubtaskCount, for example fjSubtaskCount > 0. The indexed field has no limit on the number of matching issues.
Is the number of issues limited?
Functions such as withoutSubtasks, withSubtasks and parentsOfSubtasks return at most 1,000 issues in their default mode and stop with a rewrite suggestion above that. The indexed fields, such as fjSubtaskCount, match any number of issues.
Does it work in boards, dashboards and automation?
Flexible JQL works anywhere JQL works in Jira Cloud, including search, saved filters, boards, dashboards and automation rules. It is for Jira Cloud only, not Data Center or Server.