User id in custom field from to/cc

Is it possible to write a user id of existing JIRA users in a custom field from the to/cc field of an email? (with JEMH)

2 answers

1 accepted

Currently, JEMH deals with addressees in two ways, under "Email > Addressee Processing" if you include 'toCustomField' all addressees are checked to see if they relate to a current JIRA user. JIRA users are added to a nominated MultiUserPicker type, non-JIRA account holders are added 'CSV style' to a nominated TEXT custom field.

The differentiation between to: and cc: always caused problems, more often than not, there was really no difference. If your use case really requires differentation of to: and cc: addresses, that could be added, but isnt current doable (ironically, this is how JEMH first implemented things long ago!)

Do you want user id or mail id. how you send mail to user id ?

you can mail ids to cc or bcc.

you can get all the mail id of the user.

String recipient = user.getEmailAddress();

Email email = new Email(null,null,recipient); // this will add mail id in the bcc

I want that the users from the to/cc field are written in a custom field, if an issue is created with an email. But it should be possible to get their JIRA user id and not just plain text.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,861 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot