Sending an email on a user approval decision
Sending an email on the “on-approve"
event if one of the assignees approves the page
A JSON trigger can be configured to send an email when a user undertakes an approval decision. The trigger consists of
the
"on-approve"
eventthe
"state"
condition to specify the approval statethe
"send-email"
action
"triggers":
[
{
"event":"on-approve",
"conditions":
[
{"state":"Review"}
],
"actions":
[
{"action":"send-email",
"recipients":
[
"@creator"
],
"notification":
{
"subject":"${content.title} has been approved",
"title":"${content.title} has been approved",
"body":"Hello, ${content.link} in the ${content.space} has been approved by one approver"
}
}
]
}
]
If adding the JSON trigger using workflow builder there is no need to include the opening "triggers":
JSON markup notation. The workflow builder adds it.
|
| |
|
| |
|
|
on-approve and on-reject multiple event trigger
"triggers":
[
{
"event":"on-approve",
"conditions":[
{
"state":"Review"
}
],
"actions":[
{"action":"send-email",
"recipients":
[
"@creator"
],
"notification":{
"subject":"${content.title} has been approved",
"title":"${content.title} has been approved",
"body":"Hello, ${content.link} in the ${content.space} has been approved by one approver"
}
}
]
},
{
"event":"on-reject",
"conditions":[
{
"state":"Review"
}
],
"actions":
[
{
"action":"send-email",
"recipients":[
"@creator"
],
"notification":
{
"subject":"${content.title} has been rejected",
"title":"${content.title} has been rejected",
"body":"Hello, ${content.link} in the ${content.space} has been rejected by one approver"
}
}
]
}
]
If adding the JSON trigger using workflow builder there is no need to include the opening "triggers":
JSON markup notation. The workflow builder adds it.