Script Library

Overview

Manage all your saved scripts from the Library - the Library tab of the Script Console page. It provides a table view with search, filtering, folder navigation, labels, version history, and import/export.


Script list

The Library displays the scripts of the current folder in a table:

Column Description
Name Script name (clickable to open in the Console)
Description First part of the script description
Labels Assigned label tags
Triggers Configured trigger types (disabled triggers are shown dimmed, with a “Disabled” tooltip)
Issues Linked issue keys (up to three, then “+N”) - see Issue Panel
Author Who created or last edited the script
Updated Last modification date
Preview Opens the script preview (see below)
Enabled On/off toggle
Actions The script’s action menu

On a narrow screen (the Jira window about 1024 px wide or less) the table hides the Description, Issues and Author columns so the others stay readable; search still covers all fields, and the filter row wraps onto several lines.

Click the Name, Updated or Enabled header to sort by that column. The list shows 50 scripts per page, with Previous / Next buttons.

The Preview icon on each row opens the script without leaving the Library, in three tabs: Code, Run History and Versions.

Script Library table view

</a>


Search and filtering

Type in the Search scripts… box and pick the field to search in:

  • All fields
  • Name
  • Script (source code)
  • Author - matches the author’s Jira account ID, not the display name
  • Label
  • ID
  • Issue Key

Search runs across all folders. Matching text is not highlighted in the results.

Filtering

  • By labels - select one or more labels to filter (scripts with any of the selected labels are shown)
  • By trigger type - show only scripts with specific triggers
  • By issue - type an issue key in Filter by issue… to show scripts linked to that issue
  • By folder - navigate into folders via breadcrumb navigation

Toolbar

Besides search and filters, the Library toolbar has:

  • Export as zip - export the current folder as a folder bundle (see Import/Export)
  • Import folder or zip - import a folder bundle
  • Manage Labels - create, edit and delete labels (see Labels)
  • New Folder (in the breadcrumb bar) - create a folder inside the current one

Folders

Folders provide a hierarchical structure for organizing scripts - like files on a disk.

Creating folders

  1. In the Library, open the folder where the new folder should go (or stay at All Scripts for the root)
  2. Click New Folder in the breadcrumb bar
  3. Enter a folder name, and optionally pick a color and add a description - the new folder is created in the folder you are currently in; there is no parent-folder picker in the dialog

New folder creation dialog

</a>

  • Use the breadcrumb bar to navigate the folder hierarchy
  • Click folder names to enter them
  • “All Scripts” returns to the root

Moving scripts and folders

  • Drag scripts or folders onto a folder row or a breadcrumb (see Drag-and-drop)
  • Use Move in the script’s or folder’s action menu
  • Or set the Folder on the script’s Config tab > General in the Console

Folder actions

Each folder row has an action menu:

  • Edit - change the name, color and description
  • Move - move the folder under another parent
  • Export - export the folder’s scripts as JSON
  • Export as zip - export the folder and everything under it as a folder bundle (see Import/Export)
  • Duplicate - copy the folder with its sub-folders and scripts; the copied scripts are disabled
  • Delete - delete the folder only; its scripts and sub-folders move to the parent folder (or root)
  • Delete all contents - delete the folder together with all its sub-folders and scripts (permanent)

Folder limits

Limit Value
Max folders 200
Max folder name length 50 characters
Max nesting depth 10 levels
Max folder description length 2,000 characters

Names must be unique within the same parent folder. Folders are protected against circular references - a folder cannot be moved into itself or into one of its sub-folders. See also Limits.


Labels

Labels are color-coded tags for categorizing scripts. Unlike folders, one script can have multiple labels, and one label can be on multiple scripts.

Creating labels

  1. In the Library, click Manage Labels
  2. Click Create Label
  3. Enter a name, and optionally pick a color and add a description

You can also create a label on the fly from a script’s Labels action in the Library: type a new label name and click Add.

Manage labels interface

</a>

Available colors

Auto, Default, Blue, Yellow, Purple, Red, Green. Each color (except Auto) is available in a regular and a bold variant.

Assigning labels

  • In the Console, on the script’s Config tab > General - select from available labels in the Labels field
  • In the Library, with the Labels action in the script’s menu

Filtering by label

In the Library, use the Filter by label… selector to filter scripts by label. Multiple labels can be selected; scripts that have any of the selected labels are shown. Label chips shown on a script row are not clickable.

Label limits

Limit Value
Max labels 100
Max label name length 30 characters
Max labels per script 10
Max label description length 2,000 characters

Label names are normalized to lowercase and must be unique. Deleting a label removes it from all scripts. See also Limits.


Version history

Every time you save a script, a version snapshot is created automatically.

Viewing versions

Open a script and go to the Version History tab to see all saved versions with date, author, and description. In the Library, History in the script’s action menu and the Versions tab of the script preview show the same history. See Version History for details.

Save version with note dialog

</a>

Comparing versions

Click Compare and pick two versions (either one can be the current version) to see a diff view highlighting what changed between them.

Version history diff view

</a>

Restoring versions

Restore any previous version - this creates a new version entry (the restored content becomes the latest version, preserving the full history).

Save script dialog

</a>

When the limit is reached, the oldest version is removed automatically. See Limits for version history limits.


Script actions

Each script has a quick actions menu:

Action Description
Open Open in Console editor
Copy link Copy a direct link to the script for sharing (see Deep linking)
Move Move the script to another folder
Labels Assign or remove labels (and create new ones)
Where Used Show where the script is used (workflows, custom fields)
Export Export as JSON
Duplicate Create a copy with “(copy)” suffix, keeping labels and folder
History Open the script’s version history
Rename Change the script name
Delete Remove from Library (with confirmation, see Deleting a script)

Use the Enabled toggle in the row to enable or disable the script.

Script context menu with actions

</a>

Where used

The Where Used action opens a dialog showing all locations where the script is referenced:

  • Workflow rules - post functions, validators, and conditions that use this script, with links to the workflow editor
  • Custom fields - scripted fields bound to this script

Each entry shows the usage type, location, and version status (whether the deployed version matches the latest saved version).

Tip: For a site-wide view of all script usage, see Script Usage in the Admin tab.

Note: Besides the folder bundle actions in the Library toolbar, Import/Export for bulk operations is available in the Admin tab. See Import/Export.

Export scripts dialog

</a>

Import scripts dialog

</a>

Import scripts validation preview

</a>


Deleting a script

Deletion is permanent and it does not clean up anything that points at the script. Workflow rules keep their broken reference, scripted fields stop calculating, JQL functions break saved filters, and schedules and web triggers simply disappear.

To make that visible before you confirm, the delete dialog lists what the script is currently wired into, grouped by type:

  • Triggers - schedules, events, web triggers, and other triggers attached to the script
  • Scripted fields - custom field contexts calculated by the script
  • JQL functions - JQL functions backed by the script
  • Workflow rules and custom fields - post functions, validators, conditions, and custom fields found by the last usage scan

The first three groups are always accurate. The last one comes from the cached scan behind Where Used (see Script Usage), so if you have never run Collect Information on the Script Usage tab, the dialog says so instead of implying the script is unused - an empty list and missing data are not the same answer.

This is a warning, not a lock. The Delete button stays available in every case, including when the usage information cannot be loaded.


Drag-and-drop

Scripts and folders can be moved between folders using drag-and-drop. Grab a row by its drag handle and:

  • Drop onto a folder row to move it into that folder
  • Drop onto a breadcrumb to move it into that folder (or All Scripts for the root)

The list order follows the selected sort column; drag-and-drop does not reorder scripts.


Next steps


JiBrok Studio for Jira Cloud JiBrok Studio for Jira Cloud
Release notes
Core Features
Triggers
Extensions
Data Storage
Scripting Overview
JavaScript Engine
Python Engine
Groovy Engine
Scripting API
Administration
Guides