Class StatisticTypesProvider

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

@Component public class StatisticTypesProvider extends Object
Provides available values for stat types used by various gadgets
  • Field Details

    • COMPONENTS

      public static final String COMPONENTS
    • FIXFOR

      public static final String FIXFOR
    • ALLFIXFOR

      public static final String ALLFIXFOR
    • VERSION

      public static final String VERSION
    • ALLVERSION

      public static final String ALLVERSION
    • ASSIGNEES

      public static final String ASSIGNEES
    • ISSUETYPE

      public static final String ISSUETYPE
    • PRIORITIES

      public static final String PRIORITIES
    • PROJECT

      public static final String PROJECT
    • REPORTER

      public static final String REPORTER
    • CREATOR

      public static final String CREATOR
    • RESOLUTION

      public static final String RESOLUTION
    • STATUSES

      public static final String STATUSES
    • LABELS

      public static final String LABELS
  • Constructor Details

    • StatisticTypesProvider

      @Autowired public StatisticTypesProvider(JiraAuthenticationContext authenticationContext, CustomFieldManager customFieldManager, com.atlassian.jira.gadgets.system.SystemStatisticTypesFactory systemStatisticTypesFactory)
  • Method Details

    • getStatsMapper

      public StatisticsMapper getStatsMapper(String statsMapperKey)
      Get the StatisticsMapper associated with passed key
      Parameters:
      statsMapperKey - The key for the stats mapper. Usually a custom field id, or one of the constants in this class.
      Returns:
      The StatisticsMapper associated with the passed in key.
    • getSystemStatisticTypes

      public Map<String,String> getSystemStatisticTypes()
      Returns:
      returns a map of all system stat mappers
    • getDisplayName

      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