Sending an email on the state expiry
JSON trigger to sending an email on on-expire
event
"triggers":
[
{
"event":"on-expire",
"actions":[
{
"action":"send-email",
"recipients":[
"@watchers",
"@creator",
"@lastUpdatedBy"
],
"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"
}
]
}
]
If adding the JSON trigger using workflow builder, there is no need to include the opening "triggers":
JSON markup notation, as workflow builder will automatically add it.
|
| |
|
| |
|
|
For the trigger to occur, a state must have an expiration date added that expires.
0