How to get all the Mail handlers programmatically

Ajay_Pratap October 3, 2017

I am writing a java plugin for jira and I am require to list the mail handlers currently active in jira. How can I do so? 

Thanks in advance

1 answer

0 votes
somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 3, 2017

Hi Ajay,

If you have a database connection from your plugin to JIRA you can make a call to query the mailserver table to get the list of mail servers.

In regular SQL it would just be

select * from mailserver;

Cheers,

Branden

Ajay_Pratap October 5, 2017

I cannot/not willing to make a hit on Data Base. If there is another solution, I am all ears.

Suggest an answer

Log in or Sign up to answer