Script Registry

The Script Registry allows you to search your ScriptRunner custom scripts, view type-checking errors or deprecation warnings, and export all scripts and configurations on your instance.

Type-checking errors do not necessarily mean your code will not run, as we compile it statically, and Groovy is a dynamic language, which may result in false positives.

The Script Registry lists scripts, their type, content, and location. Each script undergoes Static Type Checking to ensure it is written correctly.

Access the Script Registry

To access the Script Registry:

  1. Select Browse from the ScriptRunner menu options.
  2. Select Script Registry from the tabbed menu options. 
  3. Click Run to bring up the items in the registry.

    All Groovy scripts on the instance are listed.

  4. Scripts are sorted into category tabs, showing the number of scripts in each category.
    Click on a tab to display all scripts of that kind.


Additional path

You can also navigate to the Script Registry by selecting Built-in Scripts from the ScriptRunner menu and then searching for Script Registry at the top of the page.

Export 

From the Script Registry, you can export all ScriptRunner scripts, configurations, and custom fields from your instance, except ScriptRunner JQL function information.

Defining Scripts

In this context, "scripts" encompass a broader range of elements than typical custom script files.
Specifically, we include:

  • All scripts within your script roots.
  • All configured custom and built-in Jobs, Listeners, Fields, Behaviours, UI Fragments, REST Endpoints, Resources, and Workflow functions.
  • Custom fields.

It's important to note that even configuration-only elements are considered "scripts" for this export. For example, if you have a Behaviour or Script Field that has been configured without requiring a custom script to support it, it will still be included in the export as a "script".

Export all scripts

When you select Export all scripts from the Script Registry, the following will be exported as a .zip file:

  • All of your scripts from your script roots (as .groovy files).
  • All of your configured Jobs, Listeners, Fields, Behaviours, UI Fragments, REST Endpoints, Resources, and Workflow functions (as .json files).
  • All of your Custom fields (as a .json file). Located within a dedicated Instance Information folder, this file lists all custom fields on your instance, providing details such as the Custom Field Name, Type, and ID.
  • A .csv file containing all configured scripts in your instance (excluding script roots). This .csv file includes the following columns:
    • ID: Unique identifier of the configured script.
    • Type: Feature type of the script (for example, Listener, Job, Behaviour, etc).
    • Name: User-defined name of the script.
    • Associated Scripts: Number of custom scripts linked to this configuration.
    • Project Mappings: List of projects the script is mapped to.
    • Last Run: Most recent execution date and time (if applicable).

Troubleshooting

If the export doesn't start automatically, please check your browser settings and try again.

Export active scripts only

You can select Export active scripts Only to make sure only active scripts are exported from your instance.
Any 
Disabled scripts will be filtered out from this export. This does not include scripts in your script roots; these will always be included in the export file.

On this page