So far we have seen how to write the clients for REST, SOAP, and XML/RPC methods. Now it is time to move on to some real examples. In this recipe, we will have a look at creating an issue using REST APIs.
Create a JIRA REST client as mentioned in the Writing a Java client for the REST API recipe.
The following are the steps to create an issue with the standard fields populated on it:
final AsynchronousJiraRestClientFactory factory = new AsynchronousJiraRestClientFactory(); final URI uri = new URI("http://localhost:8080/"); final JiraRestClient jiraRestClient = factory.createWithBasicHttpAuthentication(uri, "userName", ...