Hi,
I'm having a issue figuring out why comala sends out 2 e-mails instead of one to the reviewers.
First I receive this e-mail:
Shortly after I receive the first e-mail, I'll get the same e-mail only that it now shows that my colleague S. has been assigned too.
I can't find the issue with my code.
I also cannot manage to put the comment from the author in the e-mail to the reviewer.
Can you please take a look and tell me why I'm receiving 2 e-mails instead of 1?
{workflow:name=Review Workflow|adminusers=@Reviewers@|content=pages|key=spaceworkflow--672358521|updatestatus=true}
{workflowparameter:Reviewers|description=Mandatory reviewer|type=user}
so.w,d.t
{workflowparameter}
{state:Draft|colour=#0052CC|hideselection=true|submit=Review|taskable=true}
{state}
{state:Review|approved=Approved|rejected=Draft|updated=Draft}
{approval:Review|user=&@Reviewers@}
{state}
{state:Approved|colour=#14892C|duedate=P1Y|expired=Review|final=true|hideselection=true|updated=Draft}
{state}
{trigger:pageapprovalassigned|approval=Review}
{set-message:user=@user@|style=success}
Dear User, you have assigned @Reviewers@ to review this document.
You will be notified via e-mail once the page is approved or rejected.
{set-message}
{trigger}
{trigger:pageapprovalassigned|approval=Review}
{send-email:user=@Reviewers@|subject=@user@ has assigned @pagetitle@ to be reviewed}
Dear Reviewer,
You have been assigned to review following document: *@pagetitle@*
Please perform review in form of in-line comments.
Remember to Approve or Reject the document after finishing with review.
{pageactivity}
{send-email}
{trigger}
{trigger:statechanged|state=Review}
{set-metadata:submittedby}@user@{set-metadata}
{trigger}
{trigger:pageapproved|approval=Review|partial=true}
{send-email:user=@submittedby@,@author@|subject=@Reviewers@ has approved @pagetitle@}
Dear User,
The *@pagetitle@* has been approved by [@Reviewers@].
*@Reviewers@ commented: @approvalcomment@*
{pageactivity}
{send-email}
{trigger}
{trigger:pageapproved|approval=Review|partial=true}
{set-state:Approved}
{trigger}
{trigger:pagerejected|approval=Review|partial=true}
{send-email:user=@submittedby@,@author@|subject=@Reviewers@ has rejected @pagetitle@}
Dear User,
The *@pagetitle@* has been rejected. Please view the in-line comments and adjust the page.
*@Reviewers@ commented: @approvalcomment@*
{pageactivity}
{send-email}
{trigger}
{trigger:pagerejected|approval=Review|partial=true}
{set-state:Draft}
{trigger}
{workflow}
Thanks in advance!