Class AverageAgeChartResource


@Path("/averageage") @Produces("application/json") public class AverageAgeChartResource extends SearchQueryBackedResource
REST endpoint to validate and retreive a Average Age chart.
Since:
v4.0
  • Constructor Details

  • Method Details

    • generateChart

      @GET @Path("/generate") public javax.ws.rs.core.Response generateChart(@Context javax.servlet.http.HttpServletRequest request, @QueryParam("projectOrFilterId") String queryString, @QueryParam("daysprevious") @DefaultValue("30") String days, @QueryParam("periodName") @DefaultValue("daily") String periodName, @QueryParam("returnData") @DefaultValue("false") boolean returnData, @QueryParam("width") @DefaultValue("450") int width, @QueryParam("height") @DefaultValue("300") int height, @QueryParam("inline") @DefaultValue("false") boolean inline)
      Generate an Average Age Chart and returns a simple bean containing all relievent information
      Parameters:
      request - The current HTTPRequest. Needed for url generation
      queryString - a filter id (starts with "filter-") or project id (starts with "project-")or jql (starts with "jql-")
      days - The number of days previous to go back for. Must be positive.
      periodName - The name of the period. See - ChartFactory.PeriodName
      returnData - whether to return the data or not
      width - the width of the chart in pixels (defaults to 400px)
      height - the height of the chart in pixels (defaults to 250px)
      Returns:
      a DateRangeChart if all params validated else a Collection of ValidationError
    • validateChart

      @GET @Path("/validate") public javax.ws.rs.core.Response validateChart(@QueryParam("projectOrFilterId") String queryString, @QueryParam("daysprevious") @DefaultValue("30") String days, @QueryParam("periodName") @DefaultValue("daily") String periodName)
      Ensures all parameters are valid for the Average Age Chart
      Parameters:
      queryString - a filter id (starts with "filter-") or project id (starts with "project-").
      days - The number of days previous to go back for. Must be positive.
      periodName - The name of the period. See - ChartFactory.PeriodName
      Returns:
      a Collection of ValidationError. Or empty list if no errors.