One or more trigger actions can be set for a named event in the workflow.
When the workflow trigger event occurs the trigger will check that any required conditions are met, and if met the "send-email"
action sends an email to one or more specified recipients.
"send-email"
The trigger action one or more of the following value references can also be added in a comma separated list as a value for the send-email action recipients ❗️ indicates a mandatory parameter - at least one value for "recipients" must be specified and the "notification" holder must include at least one of "subject", "title", or "body" † Each Confluence user must be specified individually using ‡ & ‡‡ Each Confluence group must be specified individually using On screen notification messages can be created using the "set-message" trigger action."send-email"
sends a custom email to one or more specified recipients. userIDs
†groupIDs
‡groupNames
‡‡user type workflow parameter references
group type workflow parameter references
Email
addresses added in a comma separated list@watchers
Note that @watchers refers to the watchers set at a document level, not including the watchers of the space.
@lastUpdatedBy
@creator
subject
title
body
subject
, title
and body
parameter values. You must include an email subject
value and body
value.{"user":"userID"}
{"user":"userID_One"},{"user":"userID_Two"}, ...
{"group":"groupID"}
and/or {"group":"groupName"}
{"group":"groupID_One"},{"group":"groupID_Two"}
,
{"group":"groupName_Users1"}
,{"group":"groupName_Users2"}, ...
"triggers":
[
{"event": "on-change-state",
"conditions":
[
{"state": "Review"}
],
"actions":
[
{"action": "send-email",
"recipients":
[
"@creator",
"@watchers",
"@lastUpdatedBy",
"@group_type_parameter_1@",
"@group_type_parameter_2@",
"@user_type_parameter_1@"
"@user_type_parameter_2@",
"email_1@email.com",
"email_2@email.com",
{"user": "user_ID_One"
},
{"user": "user_ID_Two"
},
{"group": "group_ID_One"
},
{"group": "group_ID_Two"
},
{"group": "group_Name_Users1"
}
{"group": "group_Name_Users2"
}
],
"notification": {"subject": "${content.title} is In Review State",
"title": "${content.title} is In Review State",
"body": "Hello, ${content.link} in the ${content.space} space is in approval state and needs to be reviewed"}}
]}
]
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.
Workflow trigger-generated email 'failure to send' errors are included in the Confluence log.
Related Pages
List of trigger actions
- change-state trigger action
- publish-page trigger action
- approve trigger action
- reject trigger action
- assign trigger action
- unassign trigger action
- set-expiration trigger action
- clear-expiration trigger action
- set-message trigger action
- clean-messages trigger action
- remove-restrictions trigger action
- send-email trigger action
- Users or groups within a trigger