Class ProjectPermissionSchemeResource

java.lang.Object
com.atlassian.jira.rest.v2.permission.ProjectPermissionSchemeResource

@Path("project/{projectKeyOrId}/permissionscheme") @Consumes("application/json") @Produces("application/json") public final class ProjectPermissionSchemeResource extends Object
Resource for associating permission schemes and projects.
Since:
6.5
  • Constructor Details

  • Method Details

    • assignPermissionScheme

      @PUT public jakarta.ws.rs.core.Response assignPermissionScheme(@PathParam("projectKeyOrId") String projectKeyOrId, IdBean permissionSchemeId, @QueryParam("expand") String expand)
      Assigns a permission scheme with a project.
      Parameters:
      projectKeyOrId - key or id of the project
      permissionSchemeId - object that contains an id of the scheme
      Returns:
      The newly associated permission scheme if successful, appropriate error otherwise.
    • getAssignedPermissionScheme

      @GET public jakarta.ws.rs.core.Response getAssignedPermissionScheme(@PathParam("projectKeyOrId") String projectKeyOrId, @QueryParam("expand") String expand)
      Gets a permission scheme assigned with a project.
      Parameters:
      projectKeyOrId - key or id of the project
      Returns:
      The associated permission scheme if successful, appropriate error otherwise.