public class CreatedVsResolvedResource extends SearchQueryBackedResource
Modifier and Type | Class and Description |
---|---|
static class |
CreatedVsResolvedResource.CreatedVsResolvedChart
A simple bean contain all information required to render the Created Versus Chart
|
static class |
CreatedVsResolvedResource.DataRow |
Modifier and Type | Field and Description |
---|---|
static String |
DAYS_NAME |
static String |
VERSION_LABEL |
authenticationContext, chartUtils, permissionManager, QUERY_STRING, searchService
Constructor and Description |
---|
CreatedVsResolvedResource(ChartFactory chartFactory,
ChartUtils chartUtils,
JiraAuthenticationContext authenticationContext,
PermissionManager permissionManager,
SearchService searchService,
VelocityRequestContextFactory velocityRequestContextFactory,
ApplicationProperties applicationProperties,
TimeZoneManager timeZoneManager) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
generateChart(javax.servlet.http.HttpServletRequest request,
String queryString,
String days,
String periodName,
String versionLabel,
boolean isCumulative,
boolean showUnresolvedTrend,
boolean returnData,
int width,
int height,
boolean inline)
Generate a create Versus Resolved Chart and returns a simple bean containing all relievent information
|
javax.ws.rs.core.Response |
validateChart(String queryString,
String days,
String periodName,
String versionLabel)
Ensures all parameters are valid for the Created Versus Resolved Chart
|
getFilterTitle, getFilterUrl, getSearchRequestAndValidate
createErrorResponse, createIndexingUnavailableResponse, createValidationResponse
public static final String DAYS_NAME
public static final String VERSION_LABEL
public CreatedVsResolvedResource(ChartFactory chartFactory, ChartUtils chartUtils, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, SearchService searchService, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, TimeZoneManager timeZoneManager)
public javax.ws.rs.core.Response generateChart(@Context javax.servlet.http.HttpServletRequest request, String queryString, String days, String periodName, String versionLabel, boolean isCumulative, boolean showUnresolvedTrend, boolean returnData, int width, int height, boolean inline)
request
- The current HTTPRequest. Needed for url generationqueryString
- 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
versionLabel
- The name of teh versions to show. See - ChartFactory.VersionLabel
isCumulative
- Whether or not the values are added to the previous value.showUnresolvedTrend
- Show sub-chart underneath showing trend of unresolved issuesreturnData
- Whether or not to have data returnedwidth
- the width of the chart in pixels (defaults to 400px)height
- the height of the chart in pixels (defaults to 250px)CreatedVsResolvedResource.CreatedVsResolvedChart
if all
params validated else a Collection of ValidationError
public javax.ws.rs.core.Response validateChart(String queryString, String days, String periodName, String versionLabel)
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
versionLabel
- The name of teh versions to show. See - ChartFactory.VersionLabel
ValidationError
. Or empty list if no errors.Copyright © 2002-2019 Atlassian. All Rights Reserved.