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 "assign"
action assigns one user and/or a group of users as reviewers to a named approval.
"assign"
The trigger action ❗️ indicates a mandatory parameter - the assignee To assign members of a Confluence group as reviewers instead of a single user include At least one assignee must be specified - either a user or a group or one of each. The Atlassian user Identification Number (userId) is visible in the URL when viewing the User Profile The trigger action"assign"
will assign a user to a named approval.user
ID
from the assigneruser
ID
for the assigneegroupID
or groupName
for assignees"user"
parameter value must be specified with at least one user or instead specify at least one group "triggers":
[
{"event": "on-change-state",
"conditions":
[
{"final": true}
],
"actions":
[
{"action": "assign",
"approval": "Triagereview",
"user": "5d52a37ef0f22a0da2d6f070",
"group": "qa_reviewers"}
]}
]
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.
"group":"qa_reviewers".
The "group"
parameter can use both the groupID
and the Confluence groupName.
"unassign"
can be used to remove a specified user from a named approval. You can only assign one user and/or one group in a single
"assign"
action. You cannot add multiple values for "user"
or "group"
.
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