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

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 Leaders.
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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events