public class

StatisticTypesResource

extends Object
java.lang.Object
   ↳ com.atlassian.jira.gadgets.system.StatisticTypesResource

Class Overview

REST resource for retreiving and validating Statistic Types.

Summary

Nested Classes
class StatisticTypesResource.MapEntry  
class StatisticTypesResource.StatName  
class StatisticTypesResource.StatTypeCollection  
Constants
String ALLFIXFOR
String ALLVERSION
String ASSIGNEES
String COMPONENTS
String CREATOR
String FIXFOR
String ISSUETYPE
String LABELS
String PRIORITIES
String PROJECT
String REPORTER
String RESOLUTION
String STATUSES
String VERSION
Fields
protected static final Map<StringString> systemValues
Public Constructors
StatisticTypesResource(CustomFieldManager customFieldManager, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager)
Public Methods
Response getAxies()
Retreive all available Statistic Types in JIRA.
String getDisplayName(String field)
Returns the display name for a field
StatisticsMapper getStatsMapper(String statsMapperKey)
Get the StatisticsMapper associated with passed key
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ALLFIXFOR

Constant Value: "allFixfor"

public static final String ALLVERSION

Constant Value: "allVersion"

public static final String ASSIGNEES

Constant Value: "assignees"

public static final String COMPONENTS

Constant Value: "components"

public static final String CREATOR

Constant Value: "creator"

public static final String FIXFOR

Constant Value: "fixfor"

public static final String ISSUETYPE

Constant Value: "issuetype"

public static final String LABELS

Constant Value: "labels"

public static final String PRIORITIES

Constant Value: "priorities"

public static final String PROJECT

Constant Value: "project"

public static final String REPORTER

Constant Value: "reporter"

public static final String RESOLUTION

Constant Value: "resolution"

public static final String STATUSES

Constant Value: "statuses"

public static final String VERSION

Constant Value: "version"

Fields

protected static final Map<StringString> systemValues

Public Constructors

public StatisticTypesResource (CustomFieldManager customFieldManager, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager)

Public Methods

public Response getAxies ()

Retreive all available Statistic Types in JIRA. Both System and Custom Fields.

Returns

public String getDisplayName (String field)

Returns the display name for a field

Parameters
field The field to get the displayable name for
Returns
  • A human consumable name for the field

public StatisticsMapper getStatsMapper (String statsMapperKey)

Get the StatisticsMapper associated with passed key

Parameters
statsMapperKey The key for the statsmapper. Usually a customfield id, or one of the constants in this class
Returns
  • The StatisticsMapper associated with the passed in key.