Home / JQL functions / linkedIssuesOfRecursiveLimited()
linkedIssuesOfRecursiveLimited() JQL function for Jira Cloud
Last updated 20/11/2026. Hooks is our product, and this page describes how its built-in function behaves.
linkedIssuesOfRecursiveLimited() follows links from the work items your inner JQL matches, then follows the links of those, and so on up to a depth you set. Syntax: issue in linkedIssuesOfRecursiveLimited("jql", depth). The starting matches are left out of the result.
Syntax
issue in linkedIssuesOfRecursiveLimited("jql", depth)
Linked work items, followed through further links up to a depth you set. 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 walk starts from everything it matches. |
depth | The number of link hops to follow. The depth is the limit that stops the walk. |
What it returns
A single link hop shows direct dependencies. Real programmes have chains: a feature waits on a service, which waits on a vendor ticket, which waits on a contract. This function walks that chain for you, and the depth limit stops it from wandering across your whole site. Because it leaves out the starting matches, the result is purely what the chain reaches.
Three worked examples
Board filter: everything downstream of a migration
issue in linkedIssuesOfRecursiveLimited("key = PLAT-210", 3) AND resolution is EMPTY
A programme board backed by this filter shows every unresolved work item within three link hops of the migration epic. New links added to the chain appear in the board automatically.
Dashboard gadget: blast radius of an outage
issue in linkedIssuesOfRecursiveLimited("project = OPS AND labels = sev1 AND created >= -30d", 2)
Show this in a filter results gadget during a post-incident review. It lists work two hops from any severity-one item raised in the last month.
Automation: label the dependency chain
issue in linkedIssuesOfRecursiveLimited("labels = launch-blocker", 4) AND labels is EMPTY
An automation rule can pick up everything reached by the chain that has no labels yet and add a "launch-chain" label, so reports can filter on it later.
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 linkedIssuesOfRecursiveLimited(...) matches every work item except the ones the function returns.
issue not in linkedIssuesOfRecursiveLimited("jql", depth)
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.
- The starting matches are always left out of the result.
ScriptRunner equivalent
In ScriptRunner you write issueFunction in linkedIssuesOfRecursiveLimited(...). In Hooks you write issue in linkedIssuesOfRecursiveLimited(...), and issueFunction not in becomes issue not in. The name carries over unchanged. Unlike linkedIssuesOf, it leaves the starting matches out of its result. 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
- linkedIssuesOf() - Work items linked to anything the inner JQL matches, optionally through one link type.
- descendantsOf() - Every level of work items underneath the matches, optionally only those matching a filter.
- hasLinks() - The matches that have links.
- All 15 built-in JQL functions, plus
hooked()for your own
Frequently asked questions
Why are my starting work items missing from the result?
By design. linkedIssuesOfRecursiveLimited leaves out the starting matches and returns only what the links lead to. Use linkedIssuesOf if you want matches that are linked to other matches included.
What stops the walk from running away?
The depth you pass. The scan is also bounded: each function scans up to 25,000 matches of its inner JQL and returns up to 12,000 work items.
How many work items can linkedIssuesOfRecursiveLimited() 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 linkedIssuesOfRecursiveLimited()?
Replace issueFunction in with issue in. The name carries over unchanged. Unlike linkedIssuesOf, it leaves the starting matches out of its result.