Getting Started

Installation

  1. Go to the Atlassian Marketplace and search for JiBrok Studio for Jira Cloud
  2. Click Install and select your Jira Cloud site
  3. Once installed, JiBrok Studio adds two pages:
    • Script Console - in the Jira Apps menu. This is where you write, run and organize scripts (Console, Library, Scenarios, Health and Recipes tabs).
    • JiBrok Studio - the admin page under Jira Settings > Apps. It holds Global Variables, Tables, Queues, JQL Functions, Recipes, Audit Log, Script Usage and the Admin settings. The Admin Panel button in the Script Console opens it.

Note: JiBrok Studio for Jira Cloud is available to Jira administrators only. Non-admin users cannot access the app.

First launch

The first time a page of the app opens after an install or an upgrade, it sets up its database and shows “Setting up database - this may take a couple of minutes on first launch…”. Several administrators can open the admin page at the same time: each page waits until the setup finishes (up to about six minutes) and then opens normally.


Open the Jira top navigation bar and click Apps > Script Console. The Console tab opens by default with an empty editor (or with your last unsaved draft).

For administration - global variables, tables, queues, JQL functions, the audit log and the Admin settings - open Settings > Apps > JiBrok Studio, or click Admin Panel in the Script Console.


Your first script

1. Write a Script

Type the following into the editor:

log("Hello from JiBrok Studio for Jira Cloud!")

const now = new Date()
log("Current time:", now.toISOString())

// The last expression becomes the script result
"Script completed successfully"

2. Run It

Click the Run button (or use the keyboard shortcut). You will see:

  • The output panel shows log messages
  • The result field shows the value of the last expression

3. Run with Issue Context

Enter a Jira issue key (e.g., PROJ-1) in the Issue field, then run:

const issue = await Issues.get(issueKey)
log("Issue:", issue.key)
log("Summary:", issue.summary)
log("Status:", issue.status)
log("Age:", issue.age, "days")

issue.summary

The issueKey variable is automatically available when you provide an issue key.


Key concepts

Script isolation

Scripts run in a secure sandbox. The default engine is a JS-like language that looks and feels like JavaScript; Python, Groovy and Jira Expressions engines are also available (choose the Engine on the script’s Config tab). Compared with plain JavaScript there are some differences - see Differences from JavaScript:

  • No network access - except Jira through requestJira() and API namespaces (Issues, Users, Projects, etc.)
  • No filesystem - scripts cannot read files; createFile() only produces files you download from the output panel
  • Resource limits - execution time, loop iterations, and API calls are capped. Limits vary by trigger type. See Limits for details.
  • Method whitelisting - only approved methods can be called
  • Auto-await - async API calls are automatically resolved

Output

Use log() to print values to the output panel:

log("text")              // simple text
log("a", "b", "c")      // multiple values (space-separated)
log({key: "value"})      // objects are JSON-formatted

Other log levels: debug(), info(), warn(), error() - they appear with different styling in the output.

Result

The result is the value of the last expression in your script, or the value passed to return:

// Implicit result (last expression)
2 + 2
// result: 4

// Explicit return
return "done"
// result: "done"

Sandbox mode

Toggle Sandbox to test scripts that make changes without actually modifying Jira data. Write operations (create, update, delete - POST, PUT, DELETE) are simulated, and the output shows how many requests were simulated.


Save to library

Click Save to persist your script to the Library:

  1. Set a name (required)
  2. Add an optional description
  3. Choose a folder location
  4. Assign labels for organization

Saved scripts appear in the Script Library and can be accessed from any session.


Based on your goal

I want to… Start here
Automate repetitive tasks Triggers - attach scheduled or event-based triggers
Create computed fields Scripted Fields - Text, Number, Date, DateTime, Paragraph, User, User List, Group, Group List
Customize issue forms UI Modifications - hide/show fields, set defaults
Process issues in bulk Scenarios - split bulk operations into managed steps
Store custom data Data Storage - Custom Tables and Message Queues
Add Jira Automation actions Automation integration - run scripts from Automation rules
Validate workflow transitions Workflow Validator - block invalid transitions
Receive external webhooks Webhook Trigger - trigger scripts via HTTP

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