Triggers

Overview

Automate script execution by attaching triggers to schedules, events, or user actions. Configure triggers in the script’s Config tab.

Not sure which trigger to use? See Choose the right trigger for a side-by-side comparison of all 11 types.

Trigger types at a glance

Trigger Type Covered in detail
Scheduled (hourly/daily/weekly) Scheduled Triggers
Event (32 Jira events) Event Triggers
Async Event Async Events
UI Modification (onInit/onChange) UI Modifications
Scripted Field (Text/Number/Date/DateTime/Paragraph) Scripted Fields
Automation Jira Automation Integration
Rovo Rovo AI Agent Integration
Workflow Post Function Workflow Post Function
Workflow Validator Workflow Validator
Workflow Condition Workflow Condition
Webhook (HTTP) Webhook Trigger

Context restrictions

Scripts can be limited to specific projects and issue types. When restricted, scripts skip non-matching issues.

For UI Modification triggers, you can also restrict by JSM portals and request types. See Limits for context restriction limits.

Configure context restrictions in the script’s Config tab.


Managing triggers

Adding a trigger

  1. Open a script in the Console
  2. Go to the Config tab
  3. Click Add Trigger
  4. Select trigger type and configure settings
  5. Save the script

Triggers tab empty state

Add Trigger dialog with trigger type options

Add Trigger dialog showing Rovo option

Enabling/disabling

Each trigger has its own enabled/disabled toggle, independent of the script’s enabled status. Both must be enabled for the trigger to fire.

One trigger per type

All trigger types are singleton - each script can have at most one trigger of each type.

Important notes

  • Workflow Condition is exclusive - adding a Workflow Condition trigger removes all other triggers from the script. This trigger uses Jira Expressions (not the sandbox engine) and is incompatible with other trigger types. See Workflow Condition.
  • Workflow Validator is fail-open - if a validator script throws an error or times out, the transition is allowed (not blocked). Design validators to explicitly return false with a message to block transitions. See Workflow Validator.

Limits

See Limits for trigger count limits. Global trigger type toggles are available in Administration.


Next steps