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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.