Home / JQL functions / parentsOf()

parentsOf() JQL function for Jira Cloud

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

parentsOf() returns the parents of the work items your inner JQL matches. Syntax: issue in parentsOf("jql"). It goes up one level. For parents, grandparents and beyond, use ancestorsOf. Works in the search bar, saved filters, boards and dashboards.

Try Hooks free for 30 days → All 15 functions

Syntax

issue in parentsOf("jql")

The parents 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 parents of everything it matches.

What it returns

When a set of subtasks or stories is in trouble, the next question is "whose are they?". parentsOf answers it with one query instead of a manual trawl. Use it to put the owning stories or epics of problem work in front of the people who can act.

Three worked examples

Board filter: stories with failed-QA subtasks

issue in parentsOf("project = WEB AND issuetype = Sub-task AND labels = qa-failed")

A board column filtered this way lists the parent stories that need rework, so they do not slip through to release.

Dashboard gadget: parents of unassigned subtasks

issue in parentsOf("project = ACME AND issuetype = Sub-task AND assignee is EMPTY")

Shows the parent work items that have unowned subtasks, a quick way to see where planning has gaps.

Automation: notify the parent owner

issue in parentsOf("project = PLAT AND issuetype = Sub-task AND status = Blocked")

A rule using this as its lookup can message the owners of any parent that has a blocked subtask.

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

issue not in parentsOf("jql")

Limits you will see

ScriptRunner equivalent

In ScriptRunner you write issueFunction in parentsOf(...). In Hooks you write issue in parentsOf(...), and issueFunction not in becomes issue not in. Plain parentsOf("jql") carries over unchanged. ScriptRunner's parentsOf("jql", "all") becomes ancestorsOf("jql"). 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

How is parentsOf different from ancestorsOf?

parentsOf returns the parents. ancestorsOf walks all the way up, returning parents, grandparents and so on.

What did parentsOf with "all" become?

ScriptRunner's parentsOf("jql", "all") is ancestorsOf("jql") here. The Migrate from ScriptRunner tab converts it automatically.

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

Replace issueFunction in with issue in. Plain parentsOf("jql") carries over unchanged. ScriptRunner's parentsOf("jql", "all") becomes ancestorsOf("jql").

Try Hooks free for 30 days → Docs: JQL functions