Class RankResource

java.lang.Object
com.atlassian.greenhopper.web.AbstractResource
com.atlassian.greenhopper.web.api.RankResource

@Path("api/rank") @Produces("application/json") @Consumes("application/json") public class RankResource extends AbstractResource
Since:
v5.8.1
Author:
mtokar
  • Constructor Details

    • RankResource

      @Inject public RankResource(RankHelper rankHelper)
  • Method Details

    • rankBefore

      @PUT @Path("before") public javax.ws.rs.core.Response rankBefore(RankBeforeRequest rankBeforeRequest)
      Attempts to rank issues before a specified issue, using the specified global rank custom field, via PUT method.

      Issues can be specified using IDs or Keys. If both are specified, IDs will take precedence.

      If the user does not have permission to rank any of the specified issues, no ranking operations will take place.

      The specified custom field ID must refer to a Global Rank custom field.

      Parameters:
      rankBeforeRequest - the encoded request in application/json format
      Returns:
      RankResponse if successful; errors otherwise.
    • rankAfter

      @PUT @Path("after") public javax.ws.rs.core.Response rankAfter(RankAfterRequest rankAfterRequest)
      Attempts to rank issues after a specified issue, using the specified global rank custom field, via PUT method.

      Issues can be specified using IDs or Keys. If both are specified, IDs will take precedence.

      If the user does not have permission to rank any of the specified issues, no ranking operations will take place.

      The specified custom field ID must refer to a Global Rank custom field.

      Parameters:
      rankAfterRequest - the encoded request in application/json format
      Returns:
      RankResponse if successful; errors otherwise.