Re: Email trigger action not working with Comala Doc Mana...

Nino Stana
Contributor
November 25, 2023

Hello Bruno,
Thanks for reaching out.

For the first example, you have:

{trigger:statechanged|state=In Review}
{send-email:BPM|user=&xxx|subject=Please review this process!}
Please review the  @page@ for approval!
{send-email}
{trigger}

The syntax is not correct on the second line, it should be:

{send-email:user=xxx|subject=Please review this process!}

The approval doesn't need to be specified here (":BPM"), and the "&" symbol for the user should only be used in the approval to auto-assign the users to that specific approval.

Please also make sure that the Confluence username is used, not the display name.


For your second example:

{trigger:pageapprovalassigned|approval=Review}
{send-email:address=xxx@xxx.com|subject=Page ready for approval!}
The page @page@ is waiting for your approval.
{pageactivity}
{send-email}
{trigger}

The first line is incorrect, it should be:

{trigger:pageapprovalassigned|approval=BPM}

This is because you do not have a "Review" approval present in the provided workflow; the approval is called "BPM" in your "In Review" state:

{approval:BPM|user=&xxx}

 


Here are a couple more tips:

  • Make sure to change the workflow's name; using the default template name can cause issues.
  • If you have a value (user/group/etc.) that repeats itself throughout the workflow as you do in the first example (the "xxx" user or group that you use to assign to the approval and send an email), I recommend using workflow parameters. This makes it easier to maintain and modify in the long run.

If you have more questions or need assistance, feel free to contact me directly at nino.stana@appfire.com.

I hope this helps,
Nino

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events