Class PriorityResource

java.lang.Object
com.atlassian.jira.rest.v2.issue.PriorityResource

@Path("priority") @Consumes("application/json") @Produces("application/json") public class PriorityResource extends Object
Since:
4.2
  • Constructor Details

  • Method Details

    • getPriorities

      @GET public javax.ws.rs.core.Response getPriorities(@Context javax.ws.rs.core.UriInfo uriInfo)
      Returns a list of all issue priorities.
      Parameters:
      uriInfo - a UriInfo
      Returns:
      a list of Jira Priorities
    • getPriorities

      @Path("page") @GET public javax.ws.rs.core.Response getPriorities(@DefaultValue("0") @QueryParam("startAt") long startAt, @DefaultValue("100") @QueryParam("maxResults") int maxResults, @DefaultValue("") @QueryParam("query") String query, @QueryParam("projectIds") Set<Long> projectIds)
      Returns a page with list of issue priorities whose names (or their translations) match query.
      Parameters:
      startAt - the page offset, if not specified then defaults to 0.
      maxResults - how many results on the page should be included. Defaults to DEFAULT_MAX_ELEMENTS.
      query - query that should match priority name or its translation
      projectIds - the list of project ids to filter priorities
      Returns:
      a list of Jira Priorities
      Since:
      9.2
    • getPriority

      @GET @Path("{id}") public javax.ws.rs.core.Response getPriority(@PathParam("id") String id)
      Returns an issue priority.
      Parameters:
      id - a String containing the priority id
      Returns:
      a response containing the requested issue priority