Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign to get "To" information to while create issue from email?

nihcet July 3, 2019

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.

1 answer

0 votes
Manuel Bastardo Castellano
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2019

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

nihcet July 9, 2019

Thanks. It worked.

Manuel Bastardo Castellano
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 9, 2019

please accept the answer

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events