- Trigger comparison matrix
- Which trigger should I use?
- I need to react to a Jira event
- I need to run on a schedule
- I need to validate a workflow transition
- I need to modify issue forms
- I need computed custom fields
- I need to chain scripts together
- I need to receive HTTP requests
- I need to integrate with Jira Automation
- I need non-admin users to run scripts
- I need a custom JQL search
- Comparing similar triggers
- Next steps
Trigger comparison matrix
| Trigger type | When to use | Runs as | Issue context | Timing | Engine |
|---|---|---|---|---|---|
| Scheduled | Run scripts on a recurring schedule, optionally once per issue by JQL | Configured actor (Current user runs with app permissions) | Optional (per-issue JQL mode) | Async | Sandbox |
| Event | React to Jira events (issue created, updated, etc.) | Event user (app as fallback) | Yes (auto-loaded) | Async | Sandbox |
| Async Event | Trigger scripts from other scripts | Configured actor (Current user runs with app permissions) | Optional | Async (0-900s delay) | Sandbox |
| Webhook | Execute scripts via HTTP requests | Configured actor (Current user runs with app permissions) | No | Sync | Sandbox |
| Workflow Post Function | Run scripts after a workflow transition | Configured actor | Yes (auto-loaded) | Sync | Sandbox |
| Workflow Validator | Validate transitions before they complete | Configured actor | Yes (auto-loaded) | Sync | Sandbox |
| Workflow Condition | Control transition button visibility | N/A (Jira-native) | Yes (Jira-native) | Sync | Jira Expressions |
| UI Modification | Customize the issue create form and the JSM portal request create form | Current user | Yes (form context) | Real-time | Sandbox |
| Scripted Field | Compute custom field values | Application | Yes (RichIssue) | Sync | Sandbox |
| Automation | Run scripts as Jira Automation actions (Run Script and Run Script (List)) | Configured actor (Current user runs as Application) | Optional | Async | Sandbox |
| Rovo AI | Let users run pre-approved scripts via Rovo chat | Configured actor (Current user = the Rovo user) | Optional | Async | Sandbox |
| JQL Function | Extend Jira’s query language with issue in jbExec(...) |
Application or a specific user | No | Cached (refreshed every 5 min) | Sandbox |
Which trigger should I use?
I need to react to a Jira event
Use an Event trigger. It fires automatically when issues are created, updated, deleted, or when comments, worklogs, and other objects change. Choose from 32 event types.
If you need to run logic during a workflow transition (not just after), use a Workflow Post Function or Workflow Validator instead.
I need to run on a schedule
Use a Scheduled trigger. It supports intervals from every 5 minutes to weekly. Add a JQL and it runs once per matching issue (up to 200 issues per tick), optionally only for issues updated since the last run. Scheduled triggers have the highest loop iteration limit (100,000) and generous API call budget (100 calls), making them ideal for periodic bulk operations.
I need to validate a workflow transition
Use a Workflow Validator. It runs before the transition completes and can block it with an error message. Company-managed projects only. The validator is fail-open - if the script errors out, the transition proceeds.
For simple visibility rules (“show/hide the transition button”), use a Workflow Condition with Jira Expressions instead.
I need to modify issue forms
Use a UI Modification trigger. It modifies the issue create form and the JSM portal request create form to set field names, visibility, required state, default values, and available options in real-time.
I need computed custom fields
Use a Scripted Field. It recalculates on every issue create and update, and on comment, worklog, attachment and issue link events on the issue. Available types: Text, Number, Date, DateTime, Paragraph, User, User List, Group, Group List.
I need to chain scripts together
Use Async Events. One script can trigger another asynchronously, with optional delay (up to 15 minutes) and payload. Useful for breaking complex workflows into stages.
I need to receive HTTP requests
Use a Webhook trigger. It provides a unique URL with Basic Auth authentication. Rate-limited to 60 requests per minute.
I need to integrate with Jira Automation
Use an Automation trigger. Add the Run Script - JiBrok Studio action (or Run Script (List) - JiBrok Studio to branch over an array) to any Jira Automation rule. The script receives the issue context from the automation rule and can return a result for later steps.
I need non-admin users to run scripts
Use the Rovo AI trigger. Admins pre-approve scripts, and any user who can use the JiBrok Studio agent in Rovo can discover and run them through the Rovo chat interface. With Run as: Current user the script uses the calling user’s permissions; with Application or a specific user it runs under that identity whoever asks.
I need a custom JQL search
Use a JQL Function trigger. Users invoke your script with issue in jbExec("yourFunction", arg1, ...) in any JQL field; the script returns the matching issues. Use it when the matching logic involves linked-issue traversal, cross-project predicates, or arguments supplied at search time. Results are cached for 7 days and refreshed every 5 minutes.
Comparing similar triggers
Scheduled vs event
| Scheduled | Event | |
|---|---|---|
| Fires when | Clock interval (5min - weekly) | Jira event occurs |
| Issue context | Optional - once per issue with a trigger JQL | Yes - the event payload includes the issue |
| Best for | Periodic scans, reports, bulk cleanup | Reacting to individual changes |
| API calls | 100 | 60 |
| Loop iterations | 100,000 | 50,000 |
Workflow post function vs event
| Workflow Post Function | Event | |
|---|---|---|
| Fires when | After a specific transition | After any matching Jira event |
| Timing | Sync (during transition) | Async (after event) |
| Transition context | Yes (event.transition with from/to status) |
No |
| Scope | Company-managed workflows only | All projects |
| Best for | Transition-specific logic (set fields, create linked issues) | General issue change reactions |
Async event vs scheduled
| Async Event | Scheduled | |
|---|---|---|
| Fires when | Another script triggers it | Clock interval |
| Delay | 0-900 seconds | Fixed interval |
| Issue context | Via payload or issueKey option |
Via the trigger JQL (per-issue mode) or a search |
| Best for | Script chaining, deferred processing | Periodic operations |
| API calls | 250 | 100 |
JQL function vs scripted field
| JQL Function | Scripted Field | |
|---|---|---|
| What it produces | A set of matching issues at search time | A value stored on each issue |
| Where it shows up | In JQL queries (issue in jbExec(...)) |
As a custom field on the issue view |
| Inputs | User-supplied arguments at search time | The issue itself (no extra inputs) |
| Caching | 7 days, refreshed every 5 min | Recomputed on each issue change |
| Best for | Cross-issue / cross-project predicates | Per-issue computed values |
Next steps
- Triggers - Trigger overview and configuration
- Limits - Per-trigger execution limits
- Administration - Enable/disable trigger types globally
