Class TwoDimensionalStatsResource


@Path("/twodimensionalfilterstats") @Produces("application/json") public class TwoDimensionalStatsResource extends SearchQueryBackedResource
REST endpoint to validate and retreive a two dimensional stats resource.
Since:
v4.0
  • Constructor Details

  • Method Details

    • validate

      @GET @Path("validate") public jakarta.ws.rs.core.Response validate(@QueryParam("filterId") String queryString, @QueryParam("xstattype") String xStatType, @QueryParam("ystattype") String yStatType, @QueryParam("numberToShow") String numberToShow)
    • getStats

      @GET @Path("/generate") public jakarta.ws.rs.core.Response getStats(@QueryParam("filterId") String queryString, @QueryParam("xstattype") @DefaultValue("assignees") String xStatType, @QueryParam("ystattype") @DefaultValue("assignees") String yStatType, @QueryParam("sortDirection") @DefaultValue("asc") String sortDirection, @QueryParam("sortBy") @DefaultValue("natural") String sortBy, @QueryParam("numberToShow") @DefaultValue("5") String numberToShowStr)
      Generate a two dimensional statistics view of a filter
      Parameters:
      queryString - a filter id (starts with "filter-", or just the number)
      xStatType - The stat to group by on the x axis
      yStatType - The stat to group by on the y axis
      sortDirection - Ascending or descending sort
      sortBy - The field with which to order the stats
      numberToShowStr - Maximum number of results to display on the y-axis. 0 represents unlimited.
      Returns:
      a TwoDimensionalStatsResource.TwoDimensionalProperties if all params validate else a Collection of ValidationError
    • getStatsSearchUrlBuilder

      protected com.atlassian.jira.gadgets.system.StatsSearchUrlBuilder getStatsSearchUrlBuilder()