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

Hi,

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 (https://jamieechlin.atlassian.net/browse/GRV-370) which seems to cover this aspect. Does anyone no if this has been solved yet?

Greetings

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

158 views 1 17
Join discussion

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