Sending an email to @document_user_reviewers@
when the page reaches the named state Published
In this example, the trigger listens for the change of state event to the state named Published.
The action sends an email to each of the following
watchers for the page
“@watchers"
user who last updated the page
"@lastUpdatedBy"
author of the document
"@creator"
users added as values for the workflow parameter
“@document_user_reviewers@"
"triggers": [ { "event":"on-expire", "actions":[ { "action":"send-email", "recipients":[ "@watchers", "@creator", "@lastUpdatedBy", "@document_user_reviewers@" ], "notification":{ "subject":"${content.title} has expired", "title":"${content.title} has expired", "body":"Hello, ${content.link} in the ${content.space} space has expired and needs to be reviewed" } }, { "action":"set-message", "type":"info", "title":"Expired", "body":"The page has expired", "tags":"state", "mode":"autoClose" } ] } ]
ℹ 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.
|
| |
|
| |
|
| |
|
|
0