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.
I am just trying to send a request to JIRA and get the issues for particular project as a response.
for this I am using the REST api.
What are you trying to build?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.