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 Efgh
To: User1
Subject: 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
please accept the answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.