@Component public class

StatisticTypesProvider

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

Class Overview

Provides available values for stat types used by various gadgets

Summary

Fields
public static final String ALLFIXFOR
public static final String ALLVERSION
public static final String ASSIGNEES
public static final String COMPONENTS
public static final String CREATOR
public static final String FIXFOR
public static final String ISSUETYPE
public static final String LABELS
public static final String PRIORITIES
public static final String PROJECT
public static final String REPORTER
public static final String RESOLUTION
public static final String STATUSES
public static final String VERSION
Public Constructors
@Autowired StatisticTypesProvider(JiraAuthenticationContext authenticationContext, CustomFieldManager customFieldManager)
Public Methods
String getDisplayName(String field)
Returns the display name for a field
StatisticsMapper getStatsMapper(String statsMapperKey)
Get the StatisticsMapper associated with passed key
Map<StringString> getSystemStatisticTypes()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final String ALLFIXFOR

public static final String ALLVERSION

public static final String ASSIGNEES

public static final String COMPONENTS

public static final String CREATOR

public static final String FIXFOR

public static final String ISSUETYPE

public static final String LABELS

public static final String PRIORITIES

public static final String PROJECT

public static final String REPORTER

public static final String RESOLUTION

public static final String STATUSES

public static final String VERSION

Public Constructors

@Autowired public StatisticTypesProvider (JiraAuthenticationContext authenticationContext, CustomFieldManager customFieldManager)

Public Methods

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.

public Map<StringString> getSystemStatisticTypes ()

Returns
  • returns a map of all system stat mappers