Troubleshoot ScriptRunner Enhanced Search

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, epicsOfand parentsOf use the standard Atlassian issue types only. parentsOf with the all parameter and childrenOfallow 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: As there are timeout limitations in the Cloud (two minutes maximum), you should endeavour 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.
  • 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.


On this page