Class CardLayoutResource

java.lang.Object
com.atlassian.greenhopper.web.AbstractResource
com.atlassian.greenhopper.web.rapid.view.cardlayout.CardLayoutResource

@Path("cardlayout/{rapidViewId}/{mode}") @Consumes("application/json") @Produces("application/json") public class CardLayoutResource extends AbstractResource
REST resource to facilitate card layout configuration. Follows the pattern of RESTful table resources.
Since:
v6.5
  • Constructor Details

  • Method Details

    • getAvailableCardLayoutFields

      @GET @Path("available") public jakarta.ws.rs.core.Response getAvailableCardLayoutFields(@PathParam("rapidViewId") Long rapidViewId, @PathParam("mode") String modeName)
      Get a set of fields that can be added to a card layout configuration for a given board and mode.
    • addCardLayoutField

      @POST @Path("field") public jakarta.ws.rs.core.Response addCardLayoutField(@PathParam("rapidViewId") Long rapidViewId, @PathParam("mode") String modeName, com.atlassian.greenhopper.web.rapid.view.cardlayout.CardLayoutResource.AddCardLayoutFieldRequest request)
      Add a field to the rapid view's card layout configuration. The field is added as the first field in the list
    • getCardLayoutFields

      @GET @Path("field") public jakarta.ws.rs.core.Response getCardLayoutFields(@PathParam("rapidViewId") Long rapidViewId, @PathParam("mode") String modeName)
      Get all fields that have been configured for this layout
    • deleteCardLayoutField

      @DELETE @Path("field/{cardLayoutFieldId}") public jakarta.ws.rs.core.Response deleteCardLayoutField(@PathParam("rapidViewId") Long rapidViewId, @PathParam("mode") String modeName, @PathParam("cardLayoutFieldId") Long cardLayoutFieldId)
      Delete a field from a rapid view's card layout configuration.
    • moveCardLayoutField

      @POST @Path("field/{cardLayoutFieldId}/move") public jakarta.ws.rs.core.Response moveCardLayoutField(@PathParam("rapidViewId") Long rapidViewId, @PathParam("mode") String modeName, @PathParam("cardLayoutFieldId") Long cardLayoutFieldId, EntryMoveModel moveModel)
      Modify the sequence of card layout fields for a rapid view. NOTE: We only implement position=FIRST and after=... parameters. The alternative field value pairs:
      position
      An absolute position, which may have a value of 'First'
      after
      An item to place this item after. The value should be the self link of another item