Purpose : To create an interface between java based tool and JIRA.
Requirements: 1)To fetch existing issues and issue attributes from JIRA (Read from JIRA)
2) Update the issue attributes in JIRA (Write back in JIRA)
Description: While trying to fetch the issues from JIRA using RestClient, getting RestClient exception.
Sample code:
// Accessing Issue
Promise<Issue> promise2=client.getIssueClient().getIssue("TESKAN-1");
System.out.println(promise2);
/* ============Getting an exception when trying to fetch the attributes of JIRA issue===========*/
Issue issue = promise2.claim();
Error code:
com.atlassian.jira.rest.client.internal.async.DelegatingPromise@5a4041cc
Exception in thread "main" RestClientException{statusCode=Optional.absent(), errorCollections=[]}
at com.atlassian.jira.rest.client.internal.async.DelegatingPromise.claim(DelegatingPromise.java:47)
at JiraInterface.main(JiraInterface.java:56)
Caused by: RestClientException{statusCode=Optional.absent(), errorCollections=[]}