Forums

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

How to get the server name from jira?

xavier jir March 14, 2012

Hi

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 couldn't get exactly...

Please tell me as soon as possible how to do that ??

Thanks

1 answer

0 votes
Dieter
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.
March 14, 2012

Didn't the interface MailServerManager return what you need?

Dieter
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.
March 14, 2012

You get the interface using

ComponentAccessor.getMailServerManager();

xavier jir March 14, 2012

i have configured the pop/IMAP mail server for jira..

While configuring i gave the host name as "localhost"

Now i would like to extract the servername only..

I used the "MailServerActionSupport"

Is it correct? Please guide me....

Dieter
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.
March 14, 2012
It's still not clear to me what you want to do. Do you want to translate localhost to the real host name? This could be done like here: http://www.exampledepot.com/egs/java.net/Local.html
xavier jir March 15, 2012

Hi

I would like to get the server name which is configured with in JIRA?

(That is i have configured the Pop/IMAP mail server with my jira.. While configuring i've given username,password,description,hostname) i've given the host name as "localhost" and configured successfully.

Now i would like to extract this server name from my coding part using JIRA API.

I used some JIRA API. I can extract all the details(like id,username,password,description,servername) about the server configuration,but could not retrive the servername alone. I used the method getServerName() but not working?

Could you give me the better solution. What API i've to use to retrive the Server name only from JIRA?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events