Script types and triggers
Power Scripts for Jira Cloud uses SIL scripts that integrate with specific trigger points or 'hooks' in Jira. These hooks determine when scripts execute in Jira's processes, giving you more control over your Jira instance while reducing manual work.
To effectively implement these scripts, you must have a solid understanding of core Jira concepts, such as custom fields, screens, workflows, issue types, and projects.
Hook types and tasks
Scripts run automatically when their associated hooks are triggered, working seamlessly in the background. Each hook type enables different kinds of tasks. The following table shows the various hook types in Power Scripts for Jira Cloud, their trigger points within the system, descriptions, and example automation tasks that can be performed with each hook type.
Hook Type | Trigger Point | Description | Example Tasks |
---|---|---|---|
Workflow hooks | During workflow transitions (before or after) | Scripts triggered during workflow state changes |
|
Issue hooks | When viewing or editing issues | Scripts triggered by issue-related events |
|
Scheduled hooks | At specified times | Scripts that run according to defined schedules |
|
External hooks | In response to external events | Scripts that connect with external systems |
|
Script types reference
The following table outlines the main script types available in Power Scripts, describing what each component does, when it's triggered, and its primary purposes.
Script type | Description | Trigger point | Used to |
---|---|---|---|
Workflow Conditions/Validators | Scripts that act as gatekeepers in the workflow process | BEFORE any workflow transition |
|
Workflow Actions (Post Functions) | Scripts that execute automated actions after a transition is completed | AFTER any workflow transition |
|
Listeners | Scripts that monitor and respond to various system events across multiple workflows | AFTER workflow transitions and other system events |
|
Scheduled Jobs | Scripts that run automatically at specified time intervals without user interaction | At defined time intervals (daily, weekly, monthly, or custom schedules) |
|
JQL Keywords | Pre-built and custom functions that extend Jira's search capabilities | During JQL query execution |
|
REST Service | Integration scripts that enable two-way communication with external systems | When external systems make or receive calls |
|
Webhooks | Custom URL endpoints for external system communication | When external systems send messages |
|
SIL Runner Gadget | Dashboard-based tool for custom button actions | On user interaction (button click) |
|
SIL Panel | Scripts that run in a custom section within Jira issues | Within issue view |
|