Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Jira Filter: Add Linked Work Items (How-To)

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To add linked work items to a Jira filter, you cannot query the linked issues directly with a single built-in field. Jira's JQL (Jira Query Language) does not expose a general "linked to" field for arbitrary issue links. The practical workaround is to use the issue in linkedIssues() function, which accepts an issue key and an optional link type. For example, issue in linkedIssues("PROJ-123") returns all issues linked to PROJ-123, and issue in linkedIssues("PROJ-123", "blocks") narrows it to a specific link type. You then save that JQL as a filter. This works on Jira Cloud and Jira Data Center, though the exact wording of menus can differ slightly by version, plan and region.

What You'll Need

  • A Jira account with permission to create and save filters (the "Create shared objects" or "Manage filters" permission, depending on your site).
  • The issue key (for example PROJ-123) of the work item whose links you want to query.
  • Knowledge of the link type name if you want to restrict results (for example "blocks", "is blocked by", "relates to", "clones"). Link type names are case-sensitive in some Jira versions, so copy them exactly from the issue's Links section.
  • Access to the issues you are querying; filters only return issues you have permission to view.

Step-by-Step

  1. Open Jira and go to Filters in the top navigation, then choose Advanced issue search (on older layouts this may appear as Issues > Search for issues, then switch to JQL). Labels can differ slightly by version and plan.
  2. Click into the JQL search bar and clear any existing query so you start fresh.
  3. Type the basic linked-issues query: issue in linkedIssues("PROJ-123"). Replace PROJ-123 with the real issue key. Press Enter or click Search.
  4. Check the result list. It should show every issue linked to PROJ-123, regardless of link direction or type. If the list is empty, confirm the key is correct and that the issue actually has links.
  5. To narrow by link type, add the second argument: issue in linkedIssues("PROJ-123", "blocks"). Use the exact link type name shown on the issue. Repeat with other link types as needed, combining them with OR, for example issue in linkedIssues("PROJ-123", "blocks") OR issue in linkedIssues("PROJ-123", "relates to").
  6. Add ordinary JQL conditions to refine further, such as AND status != Done or AND assignee = currentUser(). Combine them after the linkedIssues clause.
  7. Click Save as (or Save) above the results, give the filter a name, and choose who can see it (private, project, or shared). Saving requires the relevant filter permission.
  8. Find the saved filter later under Filters > View all filters, or add it to a dashboard as a Filter Results gadget.

Common Mistakes

  • Using a field name that does not exist. There is no linkedIssues field you can compare with equals; it is a function used inside issue in linkedIssues(...). Writing linkedIssues = PROJ-123 will fail.
  • Wrong link type spelling. Link type names must match the configured name. "is blocked by" is not the same as "blocked by". Copy the name from the issue's Links panel.
  • Expecting direction. linkedIssues() returns links in both directions. If you need only issues that PROJ-123 blocks, filter by link type and check the results manually, or use a more specific function if your Jira version supports one.
  • Forgetting permissions. A filter can be saved but return fewer results than expected because you cannot view some linked issues.
  • Quoting errors. Issue keys and link type names need double quotes inside the function. Single quotes may work in some versions but double quotes are the safe choice.

Tips

  • Use linkedIssues() with currentUser() is not supported directly; instead build a filter for a specific key and share it with the team.
  • For recurring needs, create a filter per epic or parent issue and add them to a dashboard so the links stay visible without re-running JQL.
  • If you need to find issues linked to any issue in a project, run the query per key or use an automation rule that copies link data into a custom field, then filter on that field.
  • Test the query in advanced search before saving; a saved filter with a syntax error will not load in gadgets.

Troubleshooting

If the query returns nothing, first confirm the issue key exists and is visible to you. Open the issue and check the Links section for actual links. Next, remove the link type argument and run the plain issue in linkedIssues("PROJ-123") to see whether any links exist at all. If that works but the typed version fails, the link type name is wrong; copy it exactly from the issue.

If Jira shows a syntax error, check quotation marks and parentheses. The function needs the issue key in double quotes and the whole clause inside issue in (...). If the filter saves but a dashboard gadget shows an error, the gadget may not support the function in your version; try the Filter Results gadget or re-save the filter.

If results differ between users, permissions are the cause. Filters do not bypass issue-level security. Ask a Jira admin to confirm your access, and avoid sharing filters that rely on issues others cannot see.

Frequently Asked Questions

Can I filter by linked issues without knowing the issue key?

Not with a single built-in JQL field. linkedIssues() requires an issue key. To filter across many keys, create one clause per key and combine them with OR, or use an automation rule to copy link information into a custom field.

Does linkedIssues() work with epics and parent links?

Epic links and parent links are handled by dedicated fields such as "Epic Link" or parent, not by linkedIssues(). Use those fields for hierarchy queries and reserve linkedIssues() for issue links like blocks, clones and relates to.

Why does my filter show links in both directions?

The function returns all links connected to the issue regardless of direction. To separate inward and outward links, restrict by link type and review the results, or use a more specific function if your Jira version provides one.

Can I save a linkedIssues filter and share it with my team?

Yes, if you have permission to create shared filters. Save the filter and set sharing to the project or group. Teammates will only see issues they are permitted to view.

Is there a limit to how many keys I can include?

JQL has practical limits on query length and complexity that vary by Jira version and hosting. Very long OR chains may time out. For large sets, use automation or a custom field instead of a giant JQL string.

Does this work the same on Jira Cloud and Data Center?

The linkedIssues() function is available on both, but menu labels and some function options differ by version. If a step looks different, use the advanced search JQL bar directly.