FAQ & Troubleshooting

General

Who can use JiBrok Studio for Jira Cloud?

Only Jira site administrators. There is no role-based access - all admins have equal access to all features.

What language do scripts use?

By default, a JavaScript-like language that runs in a secure sandbox. It supports most JS syntax (variables, functions, classes, async/await, destructuring) but runs in isolation with no access to the filesystem, network, or browser APIs. Python and Groovy engines are also available, and Jira Expressions for workflow conditions - pick the Engine on the script’s Config tab. See Scripting Language, Differences from JavaScript, Python and Groovy for details.

Is it safe to run scripts?

Yes. Scripts run in a multi-layer sandbox with strict resource limits. There is no way to access the host system, other apps, or data outside Jira. Sensitive endpoints (webhooks, audit logs, server info, user emails, bulk operations) are permanently blocked, and destructive operations require real user context. See Security Overview for the complete security model.

Why does the app request so many permissions?

JiBrok Studio requires 48 OAuth scopes across 9 categories. This number reflects Atlassian’s requirement for fine-grained scopes - instead of one “full access” permission, each capability needs its own scope. For example, the Scripted Fields module alone requires 14 scopes for field and screen configuration. Most scopes are granular read permissions (e.g., separate scopes for reading issues, issue types, statuses, priorities, labels, and users). See Permissions Reference for the full scope-by-scope list, or Security Overview for a breakdown by category.

Can scripts delete issues or change Jira configuration?

It depends on the execution identity:

  • As Application - all DELETE operations are blocked. Sending issue notifications, creating groups and adding users to groups, and creating or updating workflow schemes, permission schemes, notification schemes and roles are also blocked. You will see the error: “API call blocked: {METHOD} {PATH} - this operation is not allowed when running as app. Run the script as the current user instead.”
  • As Current User / Specific User - the operation executes with that user’s Jira permissions. DELETE is allowed only if the user has the corresponding Jira permission. All other restrictions (permanent blacklist, whitelist) still apply.

These operations require real user context for proper Jira permission checks and correct audit trail attribution. See Security Overview for the full list of restricted operations.

Can scripts call external APIs?

No. Scripts can only call the Jira REST API through requestJira() and built-in API namespaces. There is no fetch, XMLHttpRequest, or other network access.

Can I use npm packages?

No. The sandbox has no module system. Only built-in globals and methods are available - the engine provides many utilities, see Scripting API and Utilities. Use eval(uuid) to include other saved scripts.

Can scripts access other apps’ data?

No. Scripts can only access Jira data through the REST API, limited to the permissions of the configured actor (Run As setting).

What happens when my license expires?

Script execution stops, but the admin UI remains accessible. Specifically:

  • Silently skipped (trigger returns without running the script): event triggers, scheduled scripts, async events, field context updates, UI modifications on forms.
  • Explicit error (visible to the user): workflow post functions return a “License required” error, the Jira Automation action returns an error, and any action that calls the public resolver surfaces LICENSE_REQUIRED.
  • Silently allowed: workflow validators are fail-open - an inactive license is treated the same way as a script error, so the transition goes through and nothing is shown to the user. A validator is never the thing that tells you the license lapsed.
  • Still works: the Console, Library, Administration, Version History, and Import/Export - so you can review, edit, and back up your scripts while renewing the license.

If your triggers suddenly stop firing without any errors in the Audit Log, check Atlassian Marketplace for your subscription status first - silent trigger skips are the most common symptom of an inactive license.


Console issues

What’s the difference between “result” and “output”?

  • Output (logs) - messages from log(), print(), debug(), info(), warn(), error() calls
  • Result - the return value of the script, either from an explicit return or the value of the last expression

What is Sandbox mode?

Sandbox mode (the Sandbox toggle in the Console) runs read requests (GET) normally and simulates API calls that modify data (POST, PUT, DELETE) - nothing is written to Jira, and the output shows how many requests were simulated. Useful for testing scripts safely.

What does “Run As” do?

It determines whose permissions are used for Jira API calls:

  • Current User - your permissions (default)
  • Application - the app’s permissions (broader access)
  • Pre-configured User - a user from the list your administrator set up
  • Specific User - a named user’s permissions (search for any Jira user)

Application, Pre-configured User and Specific User are available only when an administrator enables them in Administration (Specific User is on by default).


Scripts

How many scripts can I have?

Up to 1,000 scripts. See Limits for all limits.

What’s the maximum script size?

250 KB.

How many API calls can a script make?

It depends on the trigger type. Console (manual) scripts allow 40 API calls, scheduled scripts allow up to 100, and async event scripts allow up to 250. See Limits for the full per-trigger table.


Script errors

Why did my script time out?

Execution time limits depend on the trigger type - from 5 seconds for UIM/scripted fields to 55 seconds for scheduled/async scripts. See Limits for specific values. Common causes:

  • Too many API calls (each call takes time)
  • Large loops processing many items
  • Complex JQL queries returning lots of data

Tips: Use maxResults in searches, process data in batches across multiple runs, select only needed fields. See Limits for all trigger-specific limits.

I get “API call limit exceeded”

You’ve hit the per-execution API call limit for your trigger type (40 for console, 100 for scheduled, 250 for async; see Limits). Solutions:

  • Use JQL to fetch data in bulk instead of one-by-one
  • Use Jira.search() with specific fields to reduce data
  • Split work across multiple scheduled runs

What are uncatchable errors?

Some errors cannot be caught with try/catch: timeout errors, iteration limit errors, security errors, AST node limit errors and eval() call limit errors. These immediately terminate the script to prevent abuse.


Triggers not firing

Can a script have multiple triggers?

Yes, a script can have up to 10 triggers. Each trigger type can be added only once per script (one Scheduled, one Event, one UI Modification, and so on), so the triggers of a script are always of different types. See Triggers for details.

My script works in Console but not as a trigger

Common causes:

  • Different context: triggers may not have an issue context. Check what variables are available for your trigger type in Triggers
  • Different permissions: a schedule has no current user - a scheduled script set to Current user runs as the Application. Choose an explicit actor in Run as if it needs a specific user’s permissions
  • Script disabled: check both the script and trigger are enabled

Checklist for all triggers

  1. The app license is active - inactive licenses silently skip trigger execution (see What happens when my license expires?)
  2. The script is enabled
  3. The trigger is enabled
  4. The trigger type is enabled globally in Administration (Admin > Triggers)

Scheduled triggers

  • Verify the schedule interval (hourly/daily/weekly) is correct
  • Check the Script Runs Audit in the Admin tab for execution records

Event triggers

  • Verify the correct event type is selected (e.g., issue_updated for issue edits), and that the event type is enabled on the Admin > Event Types tab (only 7 core events are enabled by default)
  • Events triggered by the app itself (via Application mode) are automatically ignored to prevent infinite loops
  • Verify context restrictions (projects/issue types) match

Async event triggers

  • Ensure the target script has an enabled async event trigger
  • Verify the async_event trigger type is enabled

JQL function calls

  • Verify the function is registered in the JQL Functions admin tab and is enabled
  • Verify the jql_function trigger type is enabled in Admin Settings
  • The function name in JQL is case-insensitive but must match the registered name
  • Cached results are refreshed every 5 minutes; use the Refresh cache button for an immediate recompute
  • See JQL Functions for the full reference

JQL Functions

Why does my JQL function show stale results?

Forge caches each (functionName, args) result for 7 days. The cache is refreshed automatically every 5 minutes by a scheduled job, on save when you edit the bound script or function config, and on demand via the Refresh cache button in the JQL Functions admin tab. Refresh is rate-limited to once per minute per function. If you need the result immediately, click Refresh and re-run the search after a few seconds. See JQL Functions for details.

Can I filter JQL function results per user?

No. JQL function results are cached and shared across all searchers. Jira applies per-user issue permissions after the function returns, so a user never sees an issue they cannot read - but the script returns the same set of candidate keys for everyone. Do not use the script as a permission check; rely on Jira’s permission layer.

Why can’t I save a JQL function script with “Run as current user”?

JQL function results are recomputed by a scheduled background job that has no user context, so the current user cannot be resolved at refresh time. Pick Application, Pre-configured user or Specific user in the Run as selector instead. Saving is refused with an error if a script set to Current user has a JQL Function trigger.


Scripted fields not updating

  • Scripted fields recalculate on issue create and issue update only
  • Verify the scripted_fields trigger type is enabled in Admin Settings
  • Check that the field is assigned to the correct screens
  • Scripts always run as Application - verify no API restriction blocks access

UI modifications not working

  • Verify the UI Modification trigger type is enabled in Admin Settings (Admin > Triggers; it is disabled by default)
  • Check the UIM trigger is configured for the correct project and issue type
  • Ensure the script handles both onInit and onChange callbacks as needed
  • Verify field IDs are correct (use Fields.id() to resolve by name)
  • UIM scripts always run as current user - check user permissions
  • Use Sandbox Mode in Console to test safely - UIM commands will be logged instead of executed

Tables and queues issues

What’s the difference between tables and queues?

  • Tables store persistent, structured data with columns and rows. Think of them as simple databases.
  • Queues are for temporary, ordered messages that get processed and removed. Think of them as task lists.

How many rows can a table hold?

5,000 rows per table, with up to 50 tables.

Can I access tables from outside scripts?

Tables can be accessed from scripts using the Tables API and directly from the Tables tab of the JiBrok Studio admin page. There is no external API for tables.

Tables

  • Verify the table exists and column names match exactly (case-sensitive)
  • Check row count hasn’t reached the limit (see Limits)
  • Ensure row data size is within the allowed limit
  • Tables can be accessed from scripts using the Tables API and directly from the UI

Queues

  • Verify the queue exists
  • Check message count hasn’t reached the limit (see Limits)
  • Ensure message payload is within the allowed limit
  • Remember: pull() puts messages in Processing state - use ack() or reject() to finalize
  • See Queue API for full reference

Infinite loops

What happens if my script has an infinite loop?

In-script loops (for, while): the engine enforces a loop iteration limit (50,000 iterations, 100,000 for scheduled) and per-trigger execution time limits (from 5s for UIM to 55s for scheduled/async). If either is reached, the script is terminated immediately with an error.

Event trigger loops (e.g., an issue_updated script calls issue.update()): all event triggers have an ignoreSelf filter - Jira events caused by JiBrok Studio are automatically blocked from re-triggering event scripts. No action required from users.

Async event loops (e.g., Script A pushes to Script B which pushes back to A): protected by the chain depth limit - async event chains are limited to 1 hop. A script can push one async event, but that event’s handler cannot chain further async events. Additionally, duplicate events within a 5-minute window are deduplicated, and events older than 1 hour are dropped. See Async Events.


Permission errors

  • Check the Run As setting - the configured actor must have permission for the operations
  • If using Application mode, verify it’s enabled in Admin Settings
  • API whitelist/blacklist may be blocking specific endpoints - check custom profiles
  • Context restrictions may limit which projects/issue types the script can access

Common error messages

“Trigger type {type} cannot be combined with other triggers”

The Workflow Condition trigger is exclusive: it uses the Jira Expressions engine instead of the sandbox engine, so a script that has a Workflow Condition trigger cannot have any other triggers (scheduled, event, workflow post function, etc.). Remove the other triggers first, or create a separate script for the condition. See Workflow Condition - Differences from other triggers for details.

“A trigger of this type already exists for this script”

Every trigger type is a singleton - a single script can have at most one Scheduled trigger, one Event trigger, one Webhook trigger, etc. To react to a different schedule or event, create a second script. To react to many events of the same type, select multiple events within one Event trigger.

“Maximum triggers per script reached”

Scripts can have at most 10 triggers total. If you need more, split the logic across multiple scripts and use Async Events to chain them.

“Running as Application is disabled by admin” / “Running as a specific user is disabled by admin”

The script’s Run As setting requires a mode that the administrator has turned off globally in Administration. Either change the Run As setting in the script’s Config tab, or ask your admin to enable the mode. Available Run As modes are controlled per-site and override any script-level configuration.

“License required”

The app license is not active. Most triggers silently skip execution; workflow post functions, validators, and the Automation action return this error to their caller. See What happens when my license expires? above.

“A scenario is already running for this script”

Only one scenario per script can run at a time. Wait for the active run to finish, or cancel it from the Scenarios tab before starting a new one. See Scenarios - Concurrency.


Performance tips

  • Keep scripts simple and focused - do one thing well
  • Use JQL fields parameter to fetch only needed data
  • Avoid unnecessary API calls - cache data in variables
  • Use Custom Tables for persistent data instead of repeated API lookups
  • For bulk operations, process in batches across multiple scheduled runs
  • Keep UIM scripts fast - they run on every form interaction
  • Use the Globals script for shared constants instead of re-fetching in every script

Automation & integrations

Can I run scripts from Jira Automation?

Yes. JiBrok Studio provides an Automation action that can be used in Jira Automation rules. Configure it with:

  • scriptId (required) - the ID of the script to run
  • issueKey (optional) - supports smart values like {{issue.key}}

The Automation trigger type is enabled by default. You can disable it in Administration.

Can I use scripts with Rovo AI Agent?

Yes. JiBrok Studio integrates with Rovo AI Agent, providing two actions: list available scripts and run a script. Scripts must have a Rovo trigger configured and be enabled.

The Rovo trigger type is disabled by default - enable it in Administration.

Can external systems trigger scripts?

Yes. The Webhook Trigger (Webtrigger) lets external systems call your scripts via HTTP requests with Basic Auth credentials. Supports GET, POST, PUT, and DELETE methods. Rate-limited per webhook.

The Webtrigger trigger type is disabled by default - enable it in Administration.


Scenarios & bulk operations

How do I process thousands of issues?

Use Scenarios. Scenarios split long-running scripts into managed steps - each step runs as a separate Forge event, avoiding execution timeouts. The batch() step type handles automatic pagination, progress tracking, and error handling:

batch('cleanup', 'project = PROJ AND updated < -180d', (issue) => {
  issue.transition('Done')
})

For simpler cases (under ~100 issues), a regular console script with Issues.search() may be sufficient.


Export, import & version history

Can I back up or transfer scripts?

Yes. Scripts can be exported and imported in two formats:

  • Single JSON file (formatVersion: 1) - full backups, restores and moves between sites; it can carry up to 18 sections (scripts, labels, folders, tables, queues, whitelists, blacklists, settings and more)
  • Folder bundle (zip or folder) - one source file per script plus a studio.json manifest, for editing scripts in your own editor and keeping them in git
  • Import is a merge keyed by script UUID: existing scripts are updated in place (or skipped / copied, depending on the conflict strategy you choose for a JSON file), unknown ones are created, and nothing is deleted
  • Exported scripts include source code, name, description, engine, Run As actor, labels, folder path, triggers, context and whitelist/blacklist assignment - not version history

See Import & Export for details, including what to check when moving to another site.

Can I sync scripts from git or a CI pipeline through a REST API?

Not yet. A REST API for keeping JiBrok Studio scripts in a git repository and pushing them in from a CI pipeline is in preparation; it is not part of the current version. Until then, use Import & Export - the folder bundle format is designed for keeping scripts in git.

Can I revert a script to a previous version?

Yes. JiBrok Studio automatically saves versions for every script. A new version is created each time you save. Each version stores:

  • Source code and description
  • Author who made the change
  • Snapshot of trigger configuration

Older versions are removed automatically when the limit is reached.


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