Class ComponentStatisticsManagerImpl
java.lang.Object
com.atlassian.jira.issue.statistics.ComponentStatisticsManagerImpl
- All Implemented Interfaces:
ComponentStatisticsManager
-
Constructor Summary
ConstructorsConstructorDescriptionComponentStatisticsManagerImpl
(StatisticsManager statisticsManager, ProjectComponentManager projectComponentManager) -
Method Summary
Modifier and TypeMethodDescriptionThis 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.
-
Constructor Details
-
ComponentStatisticsManagerImpl
public ComponentStatisticsManagerImpl(StatisticsManager statisticsManager, ProjectComponentManager projectComponentManager)
-
-
Method Details
-
getProjectsWithComponentsWithIssueCount
public Map<Project,Map<ProjectComponent, getProjectsWithComponentsWithIssueCountInteger>> (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.- Specified by:
getProjectsWithComponentsWithIssueCount
in interfaceComponentStatisticsManager
- 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).
-