Skip to content

Add activity token support to the emailapi

kainuk requested to merge kainuk/emailapi:activitySupport into master

When a trigger is fired on an activity change and an email action is linked to this trigger, it makes sense to include information about the activity in the email. This PR does the following.

  • Adds an Activity ID to the .
  • when the Activity ID is set and an activity token is found in the email, the activity is retrieved and the token is replaced.
  • When the Send Email Action finds an Activity ID in the triggered data it is added to the send email call.

The activity tokens have the following format {activity.<field>}. So {activity.id} retrieves the activity ID and {activity.subject} the subject.

Merge request reports