Test mail server connection via API

Hi,

We have the scriptrunner plugin installed allowing us to define custom rest endpoints. I want to implement an endpoint which will test the connectivity of an incoming mail server defined in our JIRA instance.

I see that there is a class which seems like it would help me do exactly that, com.atlassian.jira.plugins.mail.webwork.VerifyPopServerConnection

I had two questions regarding this

1. Would using this class be the proper way to test the connectivity of the incoming mail server?

2. If this is the right class, how would I go about getting an instance of this class?

Thanks

1 answer

0 vote

Are you checking health of the mail server?   There is a free marketplace addin that gives you that api access.

Mail Queue Monitor 

Yeah I want to check whether the connection is successful, like the action that is done when you click on the "Test Connection" button in the UI for editing/creating a mail server.

I don't want to add a plugin, because our instance is under heavy use, and plugins can have performance impacts.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,304 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot