automation - send email to project users with smart value
Asked by Giorgi Tsitsvidze:

i need to send email to project users i try {{issue.project.users.emailaddress}} this value but in logs - "Could not send email, the 'To' address field is empty. If you have referenced a field it may be empty."

<br />

what value i need to write ?

can you help me ?

there is only assignee and reporter fields to choose


Answers:
author: Yvan Martin
body: Hi Giorgi,  

Developer from Automation here.  

As mentioned by Hana we don't currently support sending emails to project roles, for the time being you would have to consider some of the workarounds suggested around creating groups, or custom user fields for sending emails. I do understand this isn't ideal, and we have an open feature improvement here: <https://codebarrel.atlassian.net/browse/AUT-991>  

Cheers.

comments: author: Giorgi Tsitsvidze
body: Thank you Yvan for answer . we will wait :)


author: Vishal Kharde
body: [@Yvan Martin](/t5/user/viewprofilepage/user-id/3630079) I did check AUT-991 feature request, but it seems there is no progress on it since 3 years now. We are also waiting for this feature to be implemented as its valid case in a automation rule related to notification triggering. Can you please check if this feature request can be prioritized?


author: Ioulia Kalpakoula
body: Same here. We are also waiting for this feature! It would make a lot of work much easier.


author: DD
body: I'm voting for this feature, too!


author: Hana Ku?erov?
body: Hi [@Giorgi Tsitsvidze](/t5/user/viewprofilepage/user-id/3926599) ,

what exactly do you mean by project users? Users added to some specific role in the project? Thank you for clarification.

comments: author: Giorgi Tsitsvidze
body: thanks you for email  
yes i mean users in project role ![jira_r.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/125054i69443362DEDA676E/image-size/large?v=v2&px=999 "jira_r.PNG")


author: Hana Ku?erov?
body: Hi [@Giorgi Tsitsvidze](/t5/user/viewprofilepage/user-id/3926599) ,

thank you, so it's project role Users.

I don't think it's possible. But I can see two other options.

1) create user group for your users and use this user group

2) create User Picker (multiple users) custom field, add it to your issues and use this custom field

Could you imagine doing it using one of this ways?


author: Giorgi Tsitsvidze
body: thank you for your answer i already done with groups, but it is bad practice i think .... because one global rule i copy 25 time in projects to send email only project users ... :(


author: Hana Ku?erov?
body: Hi [@Giorgi Tsitsvidze](/t5/user/viewprofilepage/user-id/3926599) ,

it would be great, if you suggest this possibility to send mail to all users from project role [here.](https://jira.atlassian.com/browse/JIRAAUTOSERVER) I didn't find any issue for such improvement. Thank you.


author: Maximillian Tjhi
body: [@Giorgi Tsitsvidze](/t5/user/viewprofilepage/user-id/3926599) it is possible with app Email this Issue. I'm not affiliated with them in any way, but i use the app and it is a Godsend


author: Benjamin Kwok
body: This issue has been backlogged since 2018. Should we assume this is not going to be fixed anytime soon? [@Yvan Martin](/t5/user/viewprofilepage/user-id/3630079)

Curious to know which fixes are prioritized, and if we can help with this.


Tags: jira

jira-server