When the workflow trigger event occurs the trigger will check that any required conditions are met, and if met the "unassign" action unassigns one or more users as reviewers to a named approval.
"unassign"
The trigger action "unassign" will assign a user to a named approval.
action (unassign)
approval (string) Name of the Approval to assign. If not specified, default approval† will be used
comment (string) Comment for the assignation operation
user (string) ❗️ Atlassian userID to assign
❗️ indicates a mandatory parameter - the assignee "user" parameter value must be specified with the "unassign" action parameter.
† If no approval is specified in the trigger action, the default approval is the approval in the state named in the trigger event condition. If there are multiple approvals in the state, the default approval is the first approval listed in the JSON markup for the state.
If adding the JSON trigger usingworkflow builderthere is no need to include the opening "triggers": JSON markup notation, since it will be added by workflow builder.
The Atlassian user Identification Number (userID) is visible in the URL when viewing the User Profile.
o
Example
We can use the "unassign" action to unassign a user as a reviewer in a state with multiple approvals.
For example in the following Rejected state we have two approvals, each with assigned reviewers.
o
Adding the following JSON trigger to the applied workflow using workflow builder