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.

Try Hooks free for 30 days → All 15 functions

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

ArgumentWhat it does
jqlRequired. 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

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

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.

Try Hooks free for 30 days → Docs: JQL functions