How to resolve the duplicate email notifications that are sent to multiple reviewers in the Comala Document Management app

How to resolve the duplicate email notifications that are sent to multiple reviewers in the Comala Document Management app

Problem summary

When configuring custom email notifications in a Comala workflow, users observed duplicate notifications being sent to each reviewer if more than one mandatory reviewer was assigned - even with default Space notifications disabled.


Observed behavior

  • One reviewer = one email ✅

  • Two reviewers = each receives two identical emails

This occurs even after disabling all standard notifications under:

  • Space settings > Document Management > Notifications

The issue is also seen when using the code below in a workflow trigger with the @Reviewers@ parameter value reference:

  • {send-email:user=@Reviewers@|subject=@user@ has assigned @pagetitle@ to be reviewed}


Root cause

The @Reviewers@ parameter is interpreted as a user group, and when included in both:

  • the email subject, and

  • the email body or workflow logic (like @Reviewers@ again inside messages)

It results in multiple triggers for each assigned reviewer. Essentially, Comala processes @Reviewers@ in multiple contexts, leading to duplicate sends.


Resolution/fix

To resolve this, use the @assignee@ value instead of @Reviewers@ to ensure that the email is sent only once per reviewer.

But hold on! This fix is only valid for a trigger using one of the following events:

  • pageapprovalassigned

  • newsapprovalassigned

  • approvalunassigned

For triggers using one of these three events, you can use:

{trigger:pageapprovalassigned|approval=Review} {send-email:user=@assignee@|subject=@user@ has assigned @pagetitle@ to be reviewed} {trigger}

This ensures that the email is sent once per assigned user. There are no more duplicates for the three triggers mentioned above.

This ensures the email is sent exactly once per assigned use. It avoids the sending of duplicate notifications!

Here are the attribute references: Attribute References