I want to get "To" information from email and assign to this user?
Jira v7.12.1
ScriptReunner v5.5.7
for exampe:From: Abcd EfghTo: User1Subject: Create Issue
Thanks for help.
Hi yo can use something like this:
Address[] a = m.getRecipients(Message.RecipientType.TO);
for more information check this documentation:
https://scriptrunner.adaptavist.com/5.5.7/jira/mail-handler.html
https://docs.oracle.com/javaee/7/api/javax/mail/Message.html
https://docs.oracle.com/javaee/7/api/javax/mail/Message.RecipientType.html#TO
Thanks. It worked.
please accept the answer
It looks like you're new here. Sign in or register to get started.