The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

how to get perticular issue from jira from my java application using JRJC

Shravani C
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 29, 2013

final JerseyJiraRestClientFactory factory = new JerseyJiraRestClientFactory();

try{

final URI jiraServerUri = new URI("https://localhost:8080/jira/rest/api/latest/issue");

final JiraRestClient restClient =factory.createWithBasicHttpAuthentication(jiraServerUri,"administrator", "netsge");

System.out.println(restClient);

final NullProgressMonitor pm = new NullProgressMonitor();

final Issue issue = restClient.getIssueClient().getIssue("ACE-1", pm);

System.out.println(issue);

}catch(Exception e){

e.printStackTrace();

}

but i am not able to get issue instead getting

com.atlassian.jira.rest.client.RestClientException: com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jobin Kuruvilla [Adaptavist]
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 Champions.
April 29, 2013

Make sure your JIRA's public certificate is imported in to the keystore of your Java app. Also make sure the port number you are using is correct.

TAGS
AUG Leaders

Atlassian Community Events