- Who this page is for
- Bring your Data Center scripts in Groovy
- Keep the same kinds of automation
- Update saved filters after the Connect to Forge upgrade
- Move scripts between sites
- Next steps
Who this page is for
You use JiBrok apps on Jira Data Center, or JiBrok Connect apps on Jira Cloud, and you are moving to Jira Cloud and Atlassian Forge. You have scripts, listeners and workflow functions that your team relies on, and you want them to keep working after the move.
This page lists what JiBrok Studio does for you today and links to the pages that explain each step.
Bring your Data Center scripts in Groovy
JiBrok Studio runs scripts in JavaScript, Python and Groovy. The Groovy engine supports closures, GDK-style collection methods, GString interpolation and Java date and time classes, so scripts written for Data Center move with fewer rewrites.
- Groovy Engine - supported constructs, Java and Groovy classes, GDK methods.
- Differences from real Groovy - what behaves differently. The engine is a Groovy-like language inside the JiBrok Studio sandbox, not a JVM: Java packages outside the listed classes are not available.
- Scripting API - Jira Cloud works through its REST API, so calls to Data Center Java APIs are rewritten to the built-in namespaces (
Issues,Users,Projects,Fieldsand others) or torequestJira().
Test each moved script in the Script Console in sandbox mode, and use Run as to check it with the permissions of the user it will run for.
Keep the same kinds of automation
The places where a Data Center script runs have counterparts in JiBrok Studio:
| On Data Center | In JiBrok Studio |
|---|---|
| Event listeners | Event triggers on 30+ Jira events |
| Scheduled jobs | Scheduled triggers with a cron schedule |
| Workflow post-functions, validators and conditions | Post functions, validators and conditions |
| Scripted fields | Scripted fields of nine types |
| Field behaviour on forms | UI Modifications on the issue create form and the JSM portal request create form |
| Custom JQL functions | JQL functions |
| Long bulk jobs | Scenarios that split work into managed steps |
Choose the Right Trigger helps you pick the trigger type for each script.
Update saved filters after the Connect to Forge upgrade
When a JiBrok Connect app moves to its Forge edition, the Forge edition brings its own fields with new field ids. Saved filters that reference the old fields stop finding issues.
The Connect → Forge filters recipe takes a snapshot of the Connect app fields before the update. After the update, it finds saved filters that reference those fields, shows the rewritten JQL, checks it with Jira and updates the filters you own.
Take the snapshot before you update the app: after the update the Connect fields are gone, and the snapshot cannot be taken later.
The upgrade plan of every JiBrok Connect app is on Connect to Forge.
Move scripts between sites
Build and test scripts on a sandbox site, then move them to production with Import & Export. The page lists what travels with an export, what stays behind and which ids still point at the old site.
Next steps
- Getting Started - install the app and run your first script.
- Groovy Engine - check your scripts against the supported constructs.
- Scripting Examples - ready-made scripts to start from.
- Connect to Forge - the upgrade plan for JiBrok Connect apps.
