Versions Compared

Key

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

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.

...