Home / JQL functions / subtasksOf()

subtasksOf() JQL function for Jira Cloud

Last updated 20/11/2026. Hooks is our product, and this page describes how its built-in function behaves.

subtasksOf() returns the subtasks of the work items your inner JQL matches. Syntax: issue in subtasksOf("jql"). It works in Jira's search bar, saved filters, boards and dashboards, and it is how you list subtasks by the fields of their parents.

Try Hooks free for 30 days → All 15 functions

Syntax

issue in subtasksOf("jql")

The subtasks of the work items the inner JQL matches. 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 subtasks of everything it matches.

What it returns

Jira can show a subtask's parent, but you cannot filter subtasks by their parent's status, sprint or fix version with plain JQL. subtasksOf does that. Describe the parents, and you get exactly their subtasks, which is ideal for QA queues and sign-off boards.

Three worked examples

Board filter: QA subtasks of stories in review

issue in subtasksOf("project = WEB AND issuetype = Story AND status = \"In Review\"") AND assignee = currentUser()

A personal QA board shows only the subtasks you own under stories currently in review.

Dashboard gadget: open subtasks on this release

issue in subtasksOf("project = ACME AND fixVersion = 3.4") AND statusCategory != Done

The release manager sees a live count of unfinished subtasks across every story in version 3.4.

Automation: remind about subtasks of closed stories

issue in subtasksOf("project = PLAT AND resolved >= -2d") AND resolution is EMPTY

A daily rule finds open subtasks under stories resolved in the last two days and pings the assignee to close or move them.

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 subtasksOf(...) matches every work item except the ones the function returns.

issue not in subtasksOf("jql")

Limits you will see

ScriptRunner equivalent

In ScriptRunner you write issueFunction in subtasksOf(...). In Hooks you write issue in subtasksOf(...), and issueFunction not in becomes issue not in. The name carries over unchanged. 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

Is subtasksOf the same as childrenOf?

No. subtasksOf returns subtasks. childrenOf returns everything parented under the matches. Pick subtasksOf when you only want the subtask level.

How do I find the stories that have subtasks?

Use hasSubtasks, which returns the matches that have subtasks.

How many work items can subtasksOf() 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 subtasksOf()?

Replace issueFunction in with issue in. The name carries over unchanged.

Try Hooks free for 30 days → Docs: JQL functions