Working with issues

So far, we have seen how to write the REST client using JRJC. Now it is time to move on to some real examples. In this recipe, we will take a look at using REST APIs for various issue operations, such as creating issues, browsing issues, and so on.

Getting ready

Create a JIRA REST client as mentioned in the Writing Java client for REST API recipe.

How to do it...

Let us start with creating issues using the JRJC client, before moving onto updating/editing issues and browsing issues.

Creating Issues

The following are the steps to create an issue with the standard fields populated on it:

  1. As mentioned in the Writing Java client for REST API recipe, initialize the REST client:
            final AsynchronousJiraRestClientFactory factory = new ...

Get JIRA Development Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.