I would like to get the server name(pop/Imap mail server) from JIRA.
I searched the JIRA API and I tried in few ways, but could not do it.
How I can do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To get this, you will need to first get an instance of the MailServerManager from JIRA, the following Groovy fragment shows how to accomplish this:
To get the Hostname of the SMTP Server for the default SMTPMailServer, the following Groovy fragment shows how:
Getting the hostname of the default POPMailServer is done as followed:
The classes in the JIRA API you will want to reference are: