The Adaptavist Group LogoDocumentation

Troubleshoot ScriptRunner Enhanced Search

Note: Enhanced Search and ScriptRunner Enhanced Search

If you purchase ScriptRunner for Jira Cloud, you will automatically receive ScriptRunner Enhanced Search for free - this is included as part of your license. However, if you find that you're not using any of the other features offered by ScriptRunner for Jira Cloud, and you're only using Enhanced Search functionality, you can purchase Enhanced Search as a standalone product instead.

Please note that both apps are not designed to be used simultaneously, as the data is stored separately. Although both products work independently, you will only see filters in the app it was created from and could duplicate work. If you currently have both products installed, or if you would like to switch from one to the other, please contact our Support team, who can manually transfer your data on your behalf.

Troubleshooting overview

Symptom / ErrorLikely CauseError CategoryWhat to Check FirstRecommended Fix
Search times out or never completes.Query processes too many issues or is too complex.Timeouts and PerformanceQuery size, negative operators.Narrow scope, split queries, add date or project filters.
Search fails intermittently during heavy instance activity.Too many searches in a short period.Rate LimitsFrequency of searches, automation, or scripts.Turn off automatic syncing for filters that don't need it, audit and delete old or unused filters.
Search returns no results, but no error.Filters are too narrow or exclude valid issues.Empty or Missing ResultsAND/OR logic, empty fields, deprecated fields.Broaden filters, include EMPTY checks, and validate fields. Check custom issue types as some functions work with these, and some don't. For example, issuesInEpics, epicsOf and parentsOf use the standard Atlassian issue types only. parentsOf with the all parameter and childrenOf allow for custom issue types.
Query fails to run or save.Invalid syntax or unsupported function.ErrorsJQL syntax, function usage.Fix syntax, use supported fields/functions.
Unable to save filter.Filter name conflict or timeout during save.ErrorsExisting filter names, query complexity.Rename filter, simplify query.

Best practice tips

  • Ensure JQL keywords are synced: It can appear that JQL queries don't work when, in fact, they just haven't been synced.
  • Use the insert function: Build queries using the Insert Function '+' option where possible, as this helps ensure the correct syntax.
  • Avoid timeout limits:
    Note: Upcoming changes to timeout limits

    To improve security and usability, ScriptRunner Enhanced Search is moving to Atlassian's native Jira platform using Forge. With the use of Forge, that means there will be changes to timeout times. Right now, on Connect, there is a 2-minute timeout for searches when made from the UI. For filter syncing the timeout is 30 seconds for each filter. When we make the upcoming change to forge, it will be 25 seconds per precomputation. A precomputation is an individual use of an Enhanced Search function. In Forge, filters can contain multiple precomputations, and each one can run at the same time for up to 25 seconds.

    For Connect (current):

    As there are timeout limitations in the Cloud (2 minutes maximum), you should try to reduce the complexity of queries and make them as small as possible to avoid these. The two-minute timeout currently applies to searches made in the Enhanced Search app only, whereas any saved filters are subject to the 30-second search timeout limit when syncing.

    For Forge (upcoming):

    As there are timeout limitations in the Cloud on the Forge platform (25-seconds per precomputation, multiple can be in a filter), you should try to reduce the complexity of queries and make them as small as possible to avoid these.

  • Enable the filter sync: Ensure filters are synced automatically when powering dashboards or Agile boards so that issues returned by a JQL query are up to date. You can toggle the filter sync filter by editing a filter.
  • Permissions: Avoid tweaking permissions for the Add-On User, as this can cause many functions to not work as expected. This is particularly the case when restricting permissions.
  • Use IDs in ES functions: Use IDs rather than names in ES functions, where possible. For example, filter IDs, Atlassian user account IDs, board IDs, sprint IDs, and so on.

The image below summarises how you can write efficient queries and how you can avoid writing inefficient ones:

Enhanced Search Data Center to Cloud migration issues

If you are encountering difficulties with your filters when migrating from ScriptRunner for Jira Data Center to Cloud, you can refer to our Troubleshoot ScriptRunner Migration section for help and guidance. In particular, we have outlined some common migration issues.

Fixing Filters Affected by the 1 October 2026 Bug

Learn how to identify and correct Jira Enhanced Search filters affected by the 1 October 2026 bug, or remove filters that are no longer needed.

If you have been affected by this bug, you will receive an email and in-app messaging later this month with specific filter IDs that were affected. This bug affected very few (less than 0.5%) customers.

On 1 October 2026, we identified a bug that had inadvertently been introduced into Enhanced Search for Jira and ScriptRunner for Jira Cloud. This bug caused a small set of Enhanced Search filters to stop working as intended.

Most of the affected filters have now been fixed; however, there are some filters that require a manual update. These filters may be showing outdated information as they are not syncing automatically.

Please either remove the filter if it is no longer needed, or manually correct the query using this guide for instructions.

  1. Locate each Jira filter using the filter ID/Atlassian account ID we have sent you. You can do this by searching for the filter https://<insert_instance_name>.atlassian.net/issues/?filter=<insert_filter_id>

  2. Check the Jira filter description.

  3. Confirm if the Jira filter description contains the correct Enhanced Search filter query, and respond back to us with this query and the associated Jira filter ID, so we can manually fix the filter.

  4. If it is not the correct filter query, respond back to us with the desired filter query and the associated Jira filter ID, so we can manually fix the filter in our database.

  5. If the filter is an Enhanced Search filter but is no longer required, please navigate to the Enhanced Search page, and delete the Enhanced Search filter.

    If the filter was never an Enhanced Search filter, then you can ignore and skip it.

If you are affected and have more questions or need help, please contact support.

Detect Broken Filters Using an Analyzer

If a filter requires attention, an error symbol indicator appears alongside it.

This indicator:

  • Highlights filters that are at high risk of failing during migration.
  • Includes a link to additional information about the issue.
Note:

There are two limits:

  • Result limit of 1,000 issues
  • Timeout limit of 55 seconds

Both of these limits are per precomputation. A precomputation is an individual use of an Enhanced Search function. Filters can contain multiple precomputations, and each one can return up to 1,000 issues and run for 55 seconds.

Example: issueFunction in linkedIssuesOf("project = test") and issueFunction in addedAfterSprintStart(1). Each use of a function, or precomputation, can return 1000 issues, so the entire filter could return 2,000 issues since there are two. For timeout limits, each function, or precomputation, can take 55 seconds to process. They will run at the same time.

Each symbol relates to a different error type:

Results exceeding 1,000 issues
Taking 55 seconds or longer to load
Returning errors

Once the issue is resolved, the indicator will disappear.

Fixing broken filters

You must review and update your saved filters that have been flagged with an error symbol. Refer to the Troubleshoot section for guidance on resolving filter errors or other issues.

Search documentation

Start typing to search the docs.