Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation to exclude users from email if already a pre-selected assignee in a user picker field

Jacquelyn Mosby April 16, 2025

Hello!

I used the community post linked below to create an automation rule to send emails to users when they are selected in a user picker field (global field), however if an additional user is added from the pick list, the original user assigned gets a duplicate email. How can I exclude users the first user from getting the duplicate email?

https://community.atlassian.com/forums/Jira-questions/Utilizing-a-User-Picker-field-to-generate-emails-to-multiple/qaq-p/2895332

 

Example scenario using the custom field 'Action Item Assignee(s)':

A subtask is created and User #1 is selected from the Action Item Assignee(s) user picker field and receives an email that they have a new action item. User #2 was later identified as an additional assignee and was added as a second assignee along with User #1. Only User #2 should get an email that they have a new action item when they are added.

 

Thanks!

Jacquelyn

 

2 answers

1 vote
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.
April 17, 2025

Hi @Jacquelyn Mosby 

When your rule is triggered on a change to that specific field, you may try using the changelog smart values to detect a value was added, and only send emails to the added users.  This may be the fastest / simplest approach to implement.  However...

There are known defects with the accuracy of changelog data provided to rules for list and multiple-selection fields...and even when the changelog is accurate, user entry-errors could lead to "churn" in sending emails.  (e.g., select / deselect / select a user would send the email at least twice)

Thus another way to ensure an email is only sent once is to record somewhere to which users they were sent.  This could be done with a custom field, or better still, to an entity property to reduce the chance of tampering.  The rule may then check if the email was sent by checking the saved list, updating it when needed.

Kind regards,
Bill

0 votes
Ashish Gupta
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2025

Hello @Jacquelyn Mosby ,
Good Day!

You can use the smart value {{addedfieldChange.values}} for Assignee(s) user picker field.
This will help to identify the most recent values that were added to the field and then can further be used to send email to the users.

Jacquelyn Mosby April 17, 2025

Hi Ashish! Thank you for your response.

 

Just clarify, where would I use that smart value in the automation rule?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events