Script Studio for Jira Cloud

    Note: Script Studio makes it straightforward to write code that customises Jira. Scheduled jobs, calculated fields, automatic reactions to changes, actions applied during a workflow transition, changes to issue forms, and endpoints called by external systems are all written, tested and managed from a single screen inside the Jira administration area.image-20260830-212408.png

    Note: How to read this documentation. Each page is written to be read straight through. Sections marked Advanced are collapsed by default and contain technical detail that is not required for normal use. Expand them only when needed.

    1. Who this is for

    Script Studio is intended for Jira administrators and integrators: the people responsible for configuring an instance, keeping its data consistent, and connecting it to the other systems an organisation uses.

    2. What it does

    Jira offers extensive configuration, but there is always a point beyond which its built-in options cannot express what an organisation needs. Script Studio lets an administrator write a short piece of code and attach it to the point in Jira where it is needed, all from a single screen in the admin area.

    RequirementHow it is met
    Work that must happen regularly, without anyone remembering to do itA scheduled job — escalating neglected items, closing stale work, producing periodic reports
    A value that Jira cannot calculate on its ownA calculated field that appears on the issue, can be searched in JQL and used on boards
    Something that must happen whenever a particular change occursA script that responds to Jira events, such as an issue being created or a comment being added
    A rule that must be enforced during a workflow transitionA validator that prevents the transition, or a post function that acts once it has taken place
    Fields that must behave differently depending on contextA UI modification that hides, requires or pre-fills a field on the create, view or transition screen
    An external system that must create or update work in JiraA REST endpoint that the external system calls, running logic the administrator controls
    Data a script needs to remember from one run to the nextIts own SQL tables, created and queried directly from the script

    A script can also take a secret stored once for the installation, or ask for a few values on the spot when an administrator runs it by hand.

    3. What it adds beyond Jira

    CapabilityProvided by Script Studio
    Calculated fieldsCustom fields whose value is derived from other data, kept current automatically and searchable in JQL. Jira has no equivalent.
    Conditional form behaviourFields that show, hide, require or pre-fill themselves in response to what else is on the form, written as code rather than assembled from a fixed rule builder.
    Persistent storageA script can hold its own state in tables it creates and manages itself, without any storage of its own to provision.
    Logic without a ceilingConditions and actions expressed in code rather than selected from a fixed list.
    Inbound integrationEndpoints that external systems can call directly, without being given Jira credentials.
    A record of every executionWhat ran, when, what it did, and what it produced — searchable, and retained.
    Version controlEvery change has an author, a description and a comparison, and can be pushed to an external repository for review.
    A single view of customisationEverything written for the instance appears in one list, showing what each item is used for and whether it is working.

    4. Why TypeScript

    Scripts are written in TypeScript, which is native to the Jira Cloud platform. It is a language most development teams already use, and the editor provides completion and error checking against the Jira REST API as a script is written, so mistakes are identified immediately rather than when the script first runs.

    5. Where scripts are stored

    Each Jira site has a single shared workspace. All administrators see the same files and work on them collaboratively. Files are stored within the Atlassian tenant.

    The workspace is a standard file tree, with folders created as required. Scripts reference one another by relative path, in the same way as any TypeScript project, which is how shared libraries are built.

    6. Execution points

    Execution pointThe script runsConfigured from
    ManualWhen an administrator runs it from the editor, optionally after filling in a short formThe editor
    ScheduleAt set times, in a selected time zoneProperties → Cron
    Jira eventsWhen a corresponding change occurs in JiraProperties → Events
    Calculated fieldWhen Jira requires the value of a custom fieldProperties → Scripted field
    UI modificationWhen a create, view or transition screen is opened, or a watched field changesProperties → UI Modifications
    REST endpointWhen an external system calls its addressProperties → REST endpoint
    Workflow ruleBefore or after a transition, or when deciding whether to offer oneThe Workflows view

    A single script may serve several of these purposes at once.

    7. Documentation index

    PageContents
    The Editor and the WorkspaceThe editor, the file tree, folders, the Properties panel, status indicators, extensions and file limits
    Writing ScriptsThe structure of a script, the execution context, calling Jira, shared libraries, running scripts, and the example library
    Event TriggersThe event catalogue, the event selection screen, delivery behaviour and troubleshooting
    Scheduled ScriptsThe schedule screen, cron expressions, time zones and the Enabled setting
    Calculated Custom FieldsCreating a field, data types, screen placement, testing and keeping values current
    UI ModificationsChanging field visibility, requirement and value on create, view and transition screens
    REST EndpointsEndpoint configuration, authentication, immediate and background processing, and calling examples
    WorkflowsThe Workflows view, the visual workflow editor, and the rules that run a script
    Script Storage (SQL)Creating tables, reading and writing them, and versioning a schema
    Run Inputs and Script VariablesForms collected before a manual run, and encrypted secrets shared across scripts
    Source ControlCommitting changes, reviewing differences, file history and configuring a repository
    Run History and DiagnosticsThe history view, filters, search, error grouping and retention
    Security and GovernanceAccess control, permissions, execution limits, data storage and auditing

    8. Getting started

    Install Script Studio on the Jira Cloud site. 2.

    Open Apps → Script Studio as a site administrator. On first use, the workspace is created and populated with a short worked example. 3.

    Press F5 to run the open file. Output is displayed in the Script Studio output panel. 4.

    Open the Example Library from the Properties panel toolbar to browse the supplied examples and copy one into the workspace. 5.

    Open Get Started from the Jira Apps menu for a guided walkthrough covering first steps, triggers, and workflows, with each step checked off as it is actually completed.

    Note: On first use after installation or an upgrade, the application may report that storage is still being prepared. Reload the page after a few seconds.

    Note: 📹 Video placeholder — getting started (10 minutes): installation, the supplied example, copying an example from the library, and scheduling it.