Home / JQL functions / epicsOf()
epicsOf() JQL function for Jira Cloud
Last updated 20/11/2026. Hooks is our product, and this page describes how its built-in function behaves.
epicsOf() returns the parent epics of the work items your inner JQL matches. Syntax: issue in epicsOf("jql"). It recognises any epic-level parent type, including epics that your admins have renamed, so it works in company-managed and team-managed projects alike.
Syntax
issue in epicsOf("jql")
The parent epics 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
| Argument | What it does |
|---|---|
jql | Required. A JQL query. The function returns the parent epics of everything it matches. |
What it returns
The question "which epics are these in?" comes up whenever a set of stories needs a decision: bugs, stale work, items missing estimates. epicsOf turns the set into the epics that own it, which is the level most stakeholders read.
Three worked examples
Board filter: epics with open critical bugs
issue in epicsOf("project = ACME AND issuetype = Bug AND priority = Critical AND resolution is EMPTY")
An epic board filtered this way highlights the epics carrying critical defects.
Dashboard gadget: epics containing work due this sprint
issue in epicsOf("project = WEB AND sprint in openSprints()")
A gadget listing these epics helps the product owner confirm that the sprint supports the right goals.
Automation: update epic owners
issue in epicsOf("project = PLAT AND status = Blocked")
A scheduled rule can notify the owner of every epic that has blocked children.
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 epicsOf(...) matches every work item except the ones the function returns.
issue not in epicsOf("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.
- Epic-level parent types are recognised, including renamed ones.
ScriptRunner equivalent
In ScriptRunner you write issueFunction in epicsOf(...). In Hooks you write issue in epicsOf(...), and issueFunction not in becomes issue not in. The name carries over unchanged. Epic-level parent types are recognised, including renamed ones. 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
- issuesInEpics() - The work items in the epics among the matches, with an epicLink form that follows the Epic Link field.
- parentsOf() - The parents of the work items the inner JQL matches.
- ancestorsOf() - Parents, grandparents and so on up the hierarchy of the matches.
- All 15 built-in JQL functions, plus
hooked()for your own
Frequently asked questions
Does epicsOf work with renamed epics?
Yes. It recognises any epic-level parent type, including renamed ones.
What is the opposite of epicsOf?
issuesInEpics, which returns the work items under the epics among the matches.
How many work items can epicsOf() 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 epicsOf()?
Replace issueFunction in with issue in. The name carries over unchanged. Epic-level parent types are recognised, including renamed ones.