Version History

Overview

Every change to a script is automatically saved as a version, enabling change tracking, comparison, and rollback. A version is recorded only when something in the snapshot below actually changed.


What’s tracked

Each version captures a snapshot of:

  • Source code
  • Name and description
  • Engine (language)
  • Actor (Run As) setting
  • Enabled status
  • Context restrictions (projects, issue types, portals, request types, fields)
  • Type (script or global)
  • Folder assignment
  • Whitelist/Blacklist assignments
  • Trigger configuration (type, settings, enabled)
  • Author (who made the change)
  • Version note - the optional note entered in the save dialog

An issue key mentioned in a version note links the script to that issue; such links are kept when the description changes. See Issue Panel.


Viewing history

  1. Open a script in the Console
  2. Go to the Version History tab
  3. See all versions listed by date (newest first); the newest is marked Current

Each version shows its date (the newest with the Current label), the View and Restore actions, and below them the version note and author on lines of their own across the full width of the panel. When the panel is narrow, the actions move to the next line instead of squeezing the date or the note. Click View to see a version’s source and settings.

The same history is available from the Script Library: History in the script’s action menu, or the Versions tab of the script preview (read-only).


Comparing versions

Click Compare and pick two versions - either one can be Current version (the live script):

  • The view shows the two versions side by side with a Diff column between them
  • Added and removed lines are highlighted (green for additions, red for removals)
  • Settings changes (name, engine, description, actor, enabled, context, triggers) are summarized above the code diff

Restoring a version

  1. Click Restore on any version
  2. Click Confirm restore
  3. The script is rolled back to that version’s state

What gets restored

  • Source code
  • Name, description
  • Engine (language)
  • Actor setting
  • Enabled status
  • Context restrictions
  • Folder assignment
  • Whitelist/Blacklist assignments
  • Trigger configuration (type, settings, enabled)

Note: Restoring creates a new version entry with the note “Restored to version from <date>”, so the restore itself can be undone.

Legacy versions

Older versions (created before the full snapshot feature) may only restore the source code.


Clearing history

The version history dialog opened with History from the Library has a Clear History button (with Confirm clear) that deletes all stored versions of that script. This cannot be undone.


Global variables

The global variables script has its own Version History tab on the Global Variables page. See Global Variables.


Limits

Limit Value
Max versions per script 50
Max description length 2,000 characters

When the version limit is reached, the oldest version is automatically deleted (FIFO). See also Limits.


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