Script runner: 'send a custom email" to user group custom field


I would like to send an email with the built-in script function 'Send a custom email'. In the "to Issue field" I want to use a custom field which is of type user group  (single selection). I inserted the issue id customfield_10536, but the respective users are not added to the recipient list.

What do I have to insert into the "To issue field" for a custom user group field?

Thanks in advance!

2 answers

I've tried with User Picker field (multiple users) and it is working. Can I have more details about the custom field you are using?

Did you entered group name or custom field id ? to the "to issue field" 

I used a custom field of type Group Picker (single group) and as mentioned inserted the id of this custom field. According to the description of script-runner, this should be possible:

Who to send the email to - valid issue fields such as assignee, reporter, projectLead, componentLead, watchers, user or user group custom fields

But I don't know what to insert in the "To issue field"...

I detected a JIRA issue ( which seems to cover this aspect. Does anyone no if this has been solved yet?


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,299 views 12 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you