Home / JQL functions / issuesInEpics()
issuesInEpics() JQL function for Jira Cloud
Last updated 20/11/2026. Hooks is our product, and this page describes how its built-in function behaves.
issuesInEpics() returns the work items that sit under the epics among your inner JQL matches. Syntax: issue in issuesInEpics("jql"). Add "epicLink" as a second argument to follow the Epic Link field exactly as ScriptRunner does, which migrated filters use.
Syntax
issue in issuesInEpics("jql")
issue in issuesInEpics("jql", "epicLink")
The work items in the epics among the matches, with an epicLink form that follows the Epic Link field. 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 looks at the epics among its matches. |
"epicLink" | Optional. Follows the Epic Link field the way ScriptRunner does. Company-managed projects only. Any other second argument is an error. |
What it returns
Epics are where scope lives, so "show me all the work in these epics" is one of the most common requests. issuesInEpics lets you choose epics with a normal query, such as by label, version or owner, and returns everything inside them. Any epic-level type works, renamed ones included, in every kind of project.
Three worked examples
Board filter: all open work in Q4 epics
issue in issuesInEpics("project = ACME AND issuetype = Epic AND fixVersion = 2026.Q4") AND statusCategory != Done
A board backed by this filter always reflects the Q4 epics' current open work, even as epics are added to the version.
Dashboard gadget: epic link form for older filters
issue in issuesInEpics("project = WEB AND labels = platform-epic", "epicLink") AND resolution is EMPTY
On company-managed projects that still use Epic Link, this form returns the same work items ScriptRunner would.
Automation: weekly epic scope digest
issue in issuesInEpics("project = PLAT AND status = \"In Progress\" AND issuetype = Epic") AND created >= -7d
A weekly rule can list work added to active epics in the last week, a simple scope-creep report.
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 issuesInEpics(...) matches every work item except the ones the function returns. Matches that are not epics do not contribute children to the result. Use childrenOf when you want those.
issue not in issuesInEpics("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.
- On a site without the Epic Link field, the "epicLink" form behaves like the one-argument form.
ScriptRunner equivalent
In ScriptRunner you write issueFunction in issuesInEpics(...). In Hooks you write issue in issuesInEpics(...), and issueFunction not in becomes issue not in. ScriptRunner's issuesInEpics("jql") becomes issuesInEpics("jql", "epicLink") when you migrate, which follows Epic Link like ScriptRunner. 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
- epicsOf() - The parent epics of the work items the inner JQL matches.
- childrenOf() - The direct children of the matches, one level down.
- descendantsOf() - Every level of work items underneath the matches, optionally only those matching a filter.
- All 15 built-in JQL functions, plus
hooked()for your own
Frequently asked questions
Why did my ScriptRunner issuesInEpics query gain an epicLink argument?
Because the two-argument form follows the Epic Link field the way ScriptRunner does. The Migrate from ScriptRunner tab adds it for you.
Does it work in team-managed projects?
The one-argument form returns the work items parented under the epics, in every kind of project. The "epicLink" form is for company-managed projects; on a site without the Epic Link field it behaves like the one-argument form.
How many work items can issuesInEpics() 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 issuesInEpics()?
Replace issueFunction in with issue in. ScriptRunner's issuesInEpics("jql") becomes issuesInEpics("jql", "epicLink") when you migrate, which follows Epic Link like ScriptRunner.