I have 2 automation rules for e-mails:
1. update issue, when adding a public comment an email is sent to customer
2 closure issue, when an issue is closed a closure email is sent to customer.
In the second option, in the transition from status X to closed, I have a comment field. I don't want to trigger the update issue, but only the closure issue.
Thanks
Hey @Bianca de Weerd 😊
I believe you can handle this by adding a simple condition to your first rule so it only runs when the issue is not Closed. That way, if you add a comment during the X → Closed transition, the “public comment” rule won’t fire, and only your closure email rule will. The easiest way is: in Rule 1, after the Issue commented trigger, add an Issue fields condition like “Status != Closed.” Alternatively, you could make the transition comment internal (via JSM settings) or use smart values to check the previous status if you need more control.
Hope this helps!
problem is that when adding the comment the issue isn't closed. It's in transition to close.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hmmm then try this, instead of relying on the current status, use the Issue transitioned trigger for your closure email rule and remove the comment trigger entirely for that case. For the “public comment” rule, add an Advanced compare condition using smart values like:
| {{changelog.status.toString}} != Closed |
This checks the status change in the event payload, not the current status, so if the comment came with a transition to Closed, the rule won’t fire.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Bianca de Weerd
If i understand correctly, your automation is listening to value change for the comment feld.
So, you need to change the second automation to work on Transition to Closed.
Let me know if it works for you.
Ariel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.