We have objects that contain users (some have multiple users) within our assets schema trees. We need an automation to send out an email to each user within these objects when a field value change is triggered. The basic logic of the automation is fine and should work but we are getting an error stating that the "To:" field of the "send email" action is blank.
The "To:" field currently contains: {{groupMembers.email}}
How can we make this work? Is there a smart value that will target user email addresses that are contained in an object?
@Dan Schlain , welcome to the Atlassian Community!
What you need to do is.
- Add a advanced branch in your automation rule and for smartvalue add your current smartvalue. I'm assuming your smartvalue is your object field with the attribute email.
- You will need to give a name for your advanced branch, you can call users or whatever.
- In your automation rule to send email in to space, add your variable {{users}}
Basically the use of smartvalue within an advanced branch is a 'for each'.
So for each email found in your object attribute, you will be sending your communication.
Your rule should be like this:
Hope this helps you
Thanks Fernando, that worked! We had the same logic but it was the ".Email" we had wrong and were referencing the wrong variable in the action.
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.