Home / JQL functions / childrenOf()
childrenOf() JQL function for Jira Cloud
Last updated 20/11/2026. Hooks is our product, and this page describes how its built-in function behaves.
childrenOf() returns the direct children (one level down) of the work items your inner JQL matches. Syntax: issue in childrenOf("jql"). It suits mixed trees where some parents are epics and others are stories. For every level of the tree below the matches, use descendantsOf.
Syntax
issue in childrenOf("jql")
The direct children of the matches, one level down. The function name is not case sensitive in the search bar, and you can use it anywhere Jira accepts JQL: the search bar, saved filters, boards, dashboard gadgets and subscriptions.
Arguments
| Argument | What it does |
|---|---|
jql | Required. A JQL query. The function returns the work items whose parent is one of the matches (one level down). |
What it returns
Unlike issuesInEpics, which only counts children of epics, childrenOf returns the children of whatever your query matches, so matches that are not epics contribute their children too. That makes it the right choice for hierarchies with custom levels, and for ad hoc questions such as "what sits under these stories?".
Three worked examples
Board filter: work under stories ready for dev
issue in childrenOf("project = WEB AND issuetype = Story AND status = \"Ready for Dev\"")
The dev board shows the child work for every story that is ready to pick up.
Dashboard gadget: children of this month's releases
issue in childrenOf("project = ACME AND issuetype = Release AND duedate <= endOfMonth()")
Shows everything parented under releases that are due this month.
Automation: tag children of at-risk parents
issue in childrenOf("project = PLAT AND labels = at-risk") AND labels != inherited-risk
A rule can add an "inherited-risk" label to the children of at-risk parents, once each.
Saving it as a filter
There is nothing app-specific to save. Compose the query in Jira's own search bar, save it as a normal Jira filter, and use that filter on boards, dashboards, gadgets and subscriptions. The JQL functions tab in Hooks has a Try a search panel that previews the first matches of a query before you save it, which is a quick way to check the inner JQL does what you expect.
Using not in
Every built-in function returns the correct set for not in. issue not in childrenOf(...) matches every work item except the ones the function returns.
issue not in childrenOf("jql")
Limits you will see
- The inner search scans up to 25,000 matches and the function returns up to 12,000 work items.
- A bigger result shows too many results. You never get a silently cut-off list.
- Results refresh within about 5 minutes of a change to your data.
- A search with an invalid inner query degrades to a no-match result, so a saved filter keeps working.
ScriptRunner equivalent
In ScriptRunner you write issueFunction in childrenOf(...). In Hooks you write issue in childrenOf(...), and issueFunction not in becomes issue not in. ScriptRunner's childrenOf("jql") is renamed descendantsOf("jql") by the Migrate from ScriptRunner tab. Use descendantsOf when you need every level. Saved Enhanced Search filters can be converted in place from the Migrate from ScriptRunner tab, which checks each one against ScriptRunner's current results first. See the migration docs and the Enhanced Search alternative guide.
Related functions
- descendantsOf() - Every level of work items underneath the matches, optionally only those matching a filter.
- subtasksOf() - The subtasks of the work items the inner JQL matches.
- issuesInEpics() - The work items in the epics among the matches, with an epicLink form that follows the Epic Link field.
- All 15 built-in JQL functions, plus
hooked()for your own
Frequently asked questions
Does childrenOf only work for epics?
No. Matches that are not epics contribute their children too, in every kind of project. issuesInEpics, by contrast, only returns the work under epics among the matches.
What if I need grandchildren as well?
Use descendantsOf, which returns every level of work underneath the matches.
How many work items can childrenOf() return?
Up to 12,000. The inner search scans up to 25,000 matches, and a bigger result shows too many results instead of a cut-off list.
What is the ScriptRunner equivalent of childrenOf()?
Replace issueFunction in with issue in. ScriptRunner's childrenOf("jql") is renamed descendantsOf("jql") by the Migrate from ScriptRunner tab. Use descendantsOf when you need every level.