Example on-assign
event
Code Block |
---|
"triggers":
[
{"event": "on-assign",
"conditions":
[
{"state":"Review"}
],
"actions":
[
{"action": "send-email",
"recipients":
[
"@creator",
"@watchers",
"@lastUpdatedBy",
],
"notification": {"subject": "${content.title} has been assigned in the Review state",
"title": "${content.title} is assigned",
"body": "Hello, ${content.link} in the ${content.space} space is
in approval state Review and has been assigned"}}
]}
] |
ℹ 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.
...