As of now, this is what I have been able to find out -
public static void accessToJira() throws IOException, URISyntaxException{
final AsynchronousJiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();
JiraRestClient client = (JiraRestClient) factory.createWithBasicHttpAuthentication(jiraServerUri, "<username>", "<password>");
// Invoke the JRJC Client
Promise<User> promise = client.getUserClient().getUser("admin");
User user = promise.claim();
Promise<SearchResult> searchJqlPromise = client.getSearchClient().searchJql("project=TACO_IMPORT_DEMO");
for (Issue issue : searchJqlPromise.claim().getIssues()) {
System.out.println(issue.getSummary());
}
}
** currently, I am encountering errors for missing classes at the line createWithBasicHttpAuthentication.
On googling and downloading the required jar for one class, another missing class comes uf and unfortunately, it wouldn't stop...
Please help.
Thanks.