public class

CreatedVsResolvedResource

extends SearchQueryBackedResource
java.lang.Object
   ↳ com.atlassian.jira.gadgets.system.AbstractResource
     ↳ com.atlassian.jira.gadgets.system.SearchQueryBackedResource
       ↳ com.atlassian.jira.gadgets.system.CreatedVsResolvedResource

Class Overview

REST endpoint to validate and retreive a Created vs Resolved chart.

Summary

Nested Classes
class CreatedVsResolvedResource.CreatedVsResolvedChart A simple bean contain all information required to render the Created Versus Chart  
class CreatedVsResolvedResource.DataRow  
Constants
String DAYS_NAME
String VERSION_LABEL
[Expand]
Inherited Constants
From class com.atlassian.jira.gadgets.system.SearchQueryBackedResource
[Expand]
Inherited Fields
From class com.atlassian.jira.gadgets.system.SearchQueryBackedResource
Public Constructors
CreatedVsResolvedResource(ChartFactory chartFactory, ChartUtils chartUtils, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, SearchService searchService, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, TimeZoneManager timeZoneManager)
Public Methods
Response generateChart(HttpServletRequest request, String queryString, String days, String periodName, String versionLabel, boolean isCumulative, boolean showUnresolvedTrend, boolean returnData, int width, int height)
Generate a create Versus Resolved Chart and returns a simple bean containing all relievent information
Response validateChart(String queryString, String days, String periodName, String versionLabel)
Ensures all parameters are valid for the Created Versus Resolved Chart
[Expand]
Inherited Methods
From class com.atlassian.jira.gadgets.system.SearchQueryBackedResource
From class com.atlassian.jira.gadgets.system.AbstractResource
From class java.lang.Object

Constants

public static final String DAYS_NAME

Constant Value: "daysprevious"

public static final String VERSION_LABEL

Constant Value: "versionLabel"

Public Constructors

public CreatedVsResolvedResource (ChartFactory chartFactory, ChartUtils chartUtils, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, SearchService searchService, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, TimeZoneManager timeZoneManager)

Public Methods

public Response generateChart (HttpServletRequest request, String queryString, String days, String periodName, String versionLabel, boolean isCumulative, boolean showUnresolvedTrend, boolean returnData, int width, int height)

Generate a create Versus Resolved 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
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 issues
returnData Whether or not to have data returned
width the width of the chart in pixels (defaults to 400px)
height the height of the chart in pixels (defaults to 250px)
Returns

public Response validateChart (String queryString, String days, String periodName, String versionLabel)

Ensures all parameters are valid for the Created Versus Resolved 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
versionLabel The name of teh versions to show. See - ChartFactory.VersionLabel
Returns