Jira automation triggers

Every rule starts with a trigger. They kick off the execution of your rules. Triggers will listen for events in Jira, such as when an issue is created or when a field value is changed.

Triggers can be set to run on a schedule, and can be customized before being applied to a rule.

See how to use all of these triggers in our Jira automation template library.

General triggers

These triggers can be used across all Jira Cloud products.

Field value changed

  • Related smart values{{fieldChange}}

The rule will run when a field value is changed. All system and custom fields are supported by this trigger.

You can use this trigger together with conditions to check the value of fields before performing actions. For example, send an SMS when an issue’s priority changes to greater than high.

When configuring this rule, you can select the fields to monitor for change, or use a regex to match the field names. You can narrow down the fields to monitor by specifying a change type: Value added, value deleted or any changes to the field value. You can also narrow down the issue operations that will trigger this rule – create, edit, transition or assign – or leave it blank to listen to all operations.

Forms submitted

Rule is run when forms attached to an issue are submitted. When configuring the trigger, you can select any number of forms, which will change how the trigger will act:

  • If no forms are selected: the rule will run when any form is submitted.

  • If one form is selected: the rule will run when that form is submitted.

  • If multiple forms are selected: the rule will only run when all of the selected forms on an issue are submitted.

Learn more about form states

Incoming webhook

  • Related smart values{{webhookData}}

The rule will run when a HTTP POST is sent to a specified webhook URL.

A webhook is a way for a third-party to trigger an automation rule. The webhook can specify issues to act on, or even provide real-time data you can use to update an issue.

When configuring this trigger, you’ll receive a unique URL that you can either add to the third-party application’s outgoing webhook configuration, or make a HTTP POST request from your custom scripts. The trigger also provides details on how to provide issue keys and other data.

You can use the {{webhookData}} smart value to reference the custom data provided by the webhook in your rule.

Issue assigned

  • Related smart values{{assignee}}

The rule will run when the Assignee of an issue is changed. For example, when an issue is assigned to a specific user, change the issue’s status to In progress and send an email to the reporter to let them know it’s being investigated.

Issue commented

  • Related smart values{{comment}}

The rule will run when a new comment is added. For example, change the status to In progress when a new comment is added on an issue.

Choosing a comment type allows you to distinguish if a comment was added stand-alone, or as part of a transition. For example, you may want to set an automation rule where a comment added to a closed issue re-opens, or a comment added transitions the status of the issue. The available comment types are:

  • All Comments (default): All comments that are added to an issue.

  • Comment is the main action: New comment is added as a message in the comments section.

  • Comment added during status transition: Comment is added when you change the status of an issue.

  • Comment added while editing issue fields: Comment added while editing one or more issue fields.

Editing a comment will not trigger this rule.

Issue comment edited

  • Related smart values: {{comment}}

This rule will run when a comment is edited. Can be used with the Edit comment action.

Issue created

  • Related smart values{{issue}}

The rule will run when an issue is created.

You can use this trigger with actions to customize the new issue, including populating fields, assigning to users, and adding sub-tasks.

Issue deleted

  • Related smart values{{issue}}

The rule will run when an issue is deleted. For example, send an email notification that an issue has been deleted.

You can use conditions to refine exactly the issue you are monitoring.

Issue linked

  • Related smart values{{destinationIssue}}{{linkType}}

The rule will run when an issue is linked to another issue.

You can configure this trigger based on any link type.

  • Related smart values{{destinationIssue}}{{linkType}}

The rule will run when an issue is unlinked from another issue.

You can configure the trigger to only execute for specified link types, or for all issue links.

Issue moved

  • Related smart values{{issue}}

The rule will run when an issue is move from one project to another.

You can use this trigger together with conditions and actions to ensure all values, fields and settings are copied across to the new project.

Issue transitioned

  • Related smart values{{issue}}{{changelog}}

The rule will run when an issue transitions from one status to another.

You can configure this trigger so it listens to the status of your choice, or simply any transition in your workflow.

Learn more about transitioning an issue with automation

Issue updated

  • Related smart values{{issue}}

The rule will run when the details on an issue are updated.

Exceptions on this trigger include changes made by the Link issueAssign issue and Log work actions.

Manual

  • Related smart values{{issue}}

The rule will run when it is manually triggered by a user. This trigger is useful for automating common tasks, or testing or debugging a rule. Learn more about using the Manual trigger to test rules

Once a rule is created with a Manual trigger, anyone with access will be able to trigger it by going to an issue and selecting Actions. You can refine which users can manually trigger a rule by selecting a permissions group in the Groups that can run trigger dropdown. Learn more about permission groups

A dropdown menu labelled "Groups that can run trigger". The default selection is "All logged in users".

You can also request input before a rule is run by selecting Get input from users. This allows you to set up some fields that will display to users when they trigger the rule. You can choose to make each field mandatory by selecting Required field. If a user chooses not to enter any information and selects Cancel, this won’t count as an execution towards your monthly limits.

Multiple issue events

  • Related smart values{{issue}}

The rule will run when one or more selected issue events occur. For example, send a Slack message when an issue is updated, transitioned or assigned.

Using this trigger may be easier and more efficient than creating several different rules.

Scheduled

  • Related smart values{{issue}}

This rule runs on a specified schedule. You can run the rule at a fixed rate (for example, every 7 days), or use a Cron expression for more complex schedules.

You can also choose to enter a JQL query. If you do, actions in this rule will execute on the issues included in the query.

Scheduled rules that reach a Failure status for 10 consecutive executions will disable automatically.

Work logged

  • Related smart values{{worklog}}

This rule will run when a work log is created, updated and/or deleted.

 

Jira Software triggers

The following triggers are only available for Jira Software.

Sprint created, started, or completed

  • Related smart values{{sprint}}

The rule will run when a sprint is created, started or completed on the selected scrum board.

This trigger will either run for every sprint on that board, or you can narrow this down using a regular expression.

You can use this trigger together with the related issues branch Issue fixed in version to loop through all issues fixed in this version.

Version created, updated, released

  • Related smart values{{version}}

The rule will run when a version is created, updated or released.

You can restrict which versions will trigger this rule using a regular expression.

The Version updated trigger listens for versions being created and released, as well as being amended. Use this trigger if you need to listen for all events around a version.

You can use the Version released trigger together with the related issues branch Issue fixed in version to loop through all issues fixed in this version.

DevOps triggers

These triggers are only available for Jira Software Cloud integrated with a source code management tool. The following tools can be used with these triggers:

  • Bitbucket Cloud 

  • GitLab 

  • GitHub 

  • BigBrassBrand 

The following tools can't be used with these triggers, though they can still be integrated with Jira Software Cloud and you'll still get the benefits of integrating in other parts of your software project:

  • Bitbucket Server 

  • GitLab On-Premise 

  • GitHub Enterprise 

Branch created

You can use conditions to refine the branches you are monitoring with this trigger. The rule will run when a branch is created. For example, when a branch is created that includes an issue key, transition that issue to In progress.

Build failed

Rule executes when a build fails. You can configure this rule to only trigger on certain build names, or builds associated with certain branches or tags.

Build status changed

Rule executes when the status of a build changes. You can configure this rule to only trigger on certain build names or builds associated with certain branches or tags.

Build successful

Rule executes when a build succeeds. You can configure this rule to only trigger on certain build names or builds associated with certain branches or tags.

Commit created

You can use conditions to refine the commits you are monitoring with this trigger.The rule will run when a commit is created.

Deployment failed

Rule executes when a deployment fails.

Deployment status changed

Rule executes when the status of a deployment changes.

Deployment successful

Rule executes when a deployment succeeds.

Pull request created

You can use conditions to refine the pull requests you are monitoring with this trigger.The rule will run when a pull request is created. For example, when a pull request is created that includes an issue key, transition that issue to In review.

Pull request declined

You can use conditions to refine the pull requests you are monitoring with this trigger.The rule will run when a pull request is declined.

Pull request merged

You can use conditions to refine the pull requests you are monitoring with this trigger.The rule will run when a pull request is merged.

Jira Service Management triggers

Object trigger

For Jira Service Management only. Rule is run when an object from a specific Assets schema is created, updated, or deleted. This can only be used for global automation rules.

Learn more about Assets in Jira Service Management

Service limit breached

  • Related smart values{{breachedSummary}}, {{breachedRules}}

The rule will run when your service limit has or is about to breach.

You can use this trigger to monitor your service limits and be notified when you may be approaching them.

SLA threshold breached

  • Related smart values{{issue}}

The rule will run when a Jira Service Management SLA has breached or is about to breach.

This trigger allows you to provide timely feedback to customers, alert agents, and automatically prioritize requests accordingly. You can select the SLA to monitor, and the time before or after it has breached to trigger.

Rules using this trigger fail to run as expected in some rare cases, for example:

  • if an SLA breaches exactly when the SLA’s calendar ends for the day

  • if an SLA is set to breach within 6 minutes

  • when there are many SLA-based rules configured in various projects

You can track this bug at JSDCLOUD-10146.

If you’re blocked and if you absolutely have to, you may use the ‘SLA time remaining’ trigger in Legacy automation. Learn more about the SLA time remaining trigger

Approval required

For Jira Service Management only. Rule is run when an issue that requires approval is created or updated, or when new approvers are added to an issue. Learn more about approvals in Jira Service Management

Approval completed

For Jira Service Management only. Rule is run when an approval step on an issue is accepted or declined. Learn more about approvals in Jira Service Management.

Additional Help