Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to send only ONE email containing all the changes made at the end of an automation process?

agnes BOURLON June 17, 2024

Here is an automate that add a label on some tickets retrieved from an SQL request.

For each change an email is sent. How to modify this automate to get only one email a the end?

image.png

image.png

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2024

Hi @agnes BOURLON 

With the Scheduled Trigger using JQL, the rule is executed for each issue found.

When you only want one email for your scenario, you may remove the JQL from the trigger and use that with the lookup instead:

  • trigger: scheduled, with no JQL
  • action: lookup issues, use the JQL that was in the trigger
  • action: send email

Kind regards,
Bill

agnes BOURLON June 17, 2024

Hi Bill

Thanks for your answer; I removed the JQL in the trigger and I got this issue. It seems that if I need to use the edit issue later I can't remove the JQL part in the trigger ...

If I remove the For Current issue, I got the same issue

I forgot to say something important, I would like to get if possible only the issues that as been changed by the action Edit Issue (I could have a condition saying that if I already have the label xxxxx I won't add the label otherwise I will add it.

Thx in advance,

Agnes

image.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2024

That is correct; to edit an issue with a rule, either the trigger or a branch needs to provide it.

 

If you only want to trigger the rule on that condition, the rule would instead need to trigger on Field Value Changed for Labels, and then add a condition to check the value needed.

Note this will operate on only one issue at a time, and so send an email for each one.

What is the problem you are trying to solve with this rule?  Knowing that may help confirm it solves it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events