Before we wind up the various useful methods using remote APIs, we can have a look at the administration methods. In this recipe, we will just concentrate on some methods revolving around the creation of projects and permissions. The remaining methods are an easy read once you have a fair idea of the ones we are discussing in this recipe.
Since JRJC doesn't support all the administration methods, let us look at the required REST method details, along with sample request and response data, as we did in the Remote user and group management recipe.
Let us consider a simple scenario to explain some of the administrative REST APIs:
Create a simple permission scheme. The permission scheme will grant Project Admin permissions to the jira-administrators group and will ignore the rest of the permissions.
Create a project.
Update the project with the new permission scheme, created in step 1.
Retrieve the project roles.
Add a user to the Administrators project...