Browse documentation

Hooks / Docs / Migrate from ScriptRunner

Migrate from ScriptRunner

Last updated 20/11/2026

The Migrate from ScriptRunner tab moves your ScriptRunner Enhanced Search filters (from ScriptRunner or the standalone Enhanced Search app) to Hooks, so they keep working after you stop using ScriptRunner. Nothing changes until you choose to migrate a filter.

Steps

  1. Open the Migrate from ScriptRunner tab and choose Scan site. Hooks lists every filter that uses ScriptRunner Enhanced Search, with the new query it would use.
  2. Each filter is marked Ready (the query converts fully) or Manual (it uses something Hooks can't convert, for example futureSprint; the reason is shown and the filter is left alone).
  3. Choose Verify. Hooks compares its results with ScriptRunner's current results for each Ready filter.
  4. Choose Migrate verified to migrate every filter that matched in the last day, or select filters and choose Migrate selected anyway (you confirm first) for ones that differ.
  5. For filters only their owner can edit, choose Copy new JQL and have the owner paste it in.

What the check tells you

Result

Meaning

Same

Hooks returns the same work items as ScriptRunner.

Differs

Shows how many work items are missing and how many are extra.

More than 12000 work items

Too large to compare in full.

ScriptRunner's copy looks out of date

ScriptRunner's own results are stale, so a difference is expected. Review it before migrating.

Check is older than a day - verify again

The filter matched, but more than a day ago. Verify it again to include it in Migrate verified.

Not checked

The filter hasn't been verified yet.

Cutover order

  1. Verify your filters.
  2. Turn off Enhanced Search in ScriptRunner's settings.
  3. Migrate.

If ScriptRunner has re-synced a filter since you verified it, the overwrite check flags it so you don't replace a newer query by accident.

Undo

Restore puts a migrated filter back exactly as it was: its original query, description and sharing. Restore anyway does the same for a filter that was changed after migrating. A restored filter has to be verified again before it can be migrated again.

What converts

Queries are accepted the way ScriptRunner writes them, including unescaped inner quotes and subqueries without quotes. The built-in functions (linkedIssuesOf, issuesInEpics, descendantsOf, ancestorsOf and the others in JQL functions) behave like their ScriptRunner namesakes; ScriptRunner's issuesInEpics becomes issuesInEpics("…", "epicLink"), which follows Epic Link like ScriptRunner. Functions without an equivalent stay Manual.

Limits

Functions return up to 12,000 work items and look through up to 25,000. A bigger result shows too many results rather than a cut-off list.