public class

ComponentStatisticsManagerImpl

extends Object
implements ComponentStatisticsManager
java.lang.Object
   ↳ com.atlassian.jira.issue.statistics.ComponentStatisticsManagerImpl

Summary

Public Constructors
ComponentStatisticsManagerImpl(StatisticsManager statisticsManager, ProjectComponentManager projectComponentManager)
Public Methods
Map<ProjectMap<ProjectComponentInteger>> getProjectsWithComponentsWithIssueCount(Optional<Query> query)
This method evaluates the query, and returns all the projects and components that the issues resulting from the given query belong to, along with the issue count for each component.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.statistics.ComponentStatisticsManager

Public Constructors

public ComponentStatisticsManagerImpl (StatisticsManager statisticsManager, ProjectComponentManager projectComponentManager)

Public Methods

public Map<ProjectMap<ProjectComponentInteger>> getProjectsWithComponentsWithIssueCount (Optional<Query> query)

This method evaluates the query, and returns all the projects and components that the issues resulting from the given query belong to, along with the issue count for each component. Issues that do not belong to any component are ignored.

Parameters
query the query to filter the count and project results by. Optional, in which case, the empty query (all results) is used.
Returns
  • Map of Projects to (Map of Project's Components to Count).