Overview
One or more trigger actions can be set for a named event in the workflow.
When the workflow trigger event occurs the trigger will check that any required conditions are met, and if met the "approve"
action approves a named approval.
"approve"
The trigger action " ❗️ no mandatory parameter - only the The Atlassian user Identification Number (approve"
causes an approved decision to occur for a named approval if the provided parameters are valid.userID
of the approverapprove
action is required. If no named approval
, the action uses the default approval in the workflow. "triggers":
[
{"event": "on-change-state",
"conditions":
[
{"final": true}
],
"actions":
[
{"action": "approve",
"approval": "Sign-off",
"user":"5d52a37ef0f22a0da2d6f070"}
]}
]
If adding the JSON trigger using workflow builder there is no need to include the opening "triggers": JSON markup notation, since it will be added by workflow builder.
userId
) is visible in the URL when viewing the User Profile
Related Pages
- JSON Triggers
- JSON Trigger events
- JSON Trigger examples
- Add a JSON trigger using workflow builder
- Users or groups within a trigger
List of trigger actions
- change-state trigger action
- publish-page trigger action
- approve trigger action
- reject trigger action
- assign trigger action
- unassign trigger action
- set-expiration trigger action
- clear-expiration trigger action
- set-message trigger action
- clean-messages trigger action
- remove-restrictions trigger action
- send-email trigger action
- Users or groups within a trigger