Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
"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"
        }
      }
    ]
  },
]

(info)  If adding the JSON trigger using workflow builder there is no need to include the opening "triggers": JSON markup notation, since It as it will be added automatically by workflow builder.

eventon-approve
  • trigger will only listen for a user approve decision - condition added to constrain the event to the Review state
conditionstate:Review
  • state condition for the trigger event
actionsend-email
  • email sent to the content author (@creator). An email is sent for each approval decision by a user

on-approve and on-reject multiple event trigger

...