Interface IssueDataService
- All Known Implementing Classes:
IssueDataServiceImpl
public interface IssueDataService
-
Method Summary
Modifier and TypeMethodDescriptioncount(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query) Counts entities matching query.findIssueIds(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query) Finds issue ids matching query.<K> ServiceOutcome<Map<K, Set<Long>>> findIssueIdsAndSplitBySubQueries(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query where, Map<K, com.atlassian.query.Query> subqueries) Finds issue ids matching query and splits them by subqueries, each subset is associated with a key from the subqueries map.getIssueCountPerStatus(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query) Find the count of issues in a given status.
-
Method Details
-
count
@Nonnull ServiceOutcome<Long> count(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query) Counts entities matching query.- Parameters:
user- userquery- query- Returns:
- count entities matching query
-
findIssueIds
@Nonnull ServiceOutcome<Set<Long>> findIssueIds(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query) Finds issue ids matching query.- Parameters:
user- user whose permissions are used to filter the issuesquery- query to find issues- Returns:
- issue ids
-
findIssueIdsAndSplitBySubQueries
@Nonnull <K> ServiceOutcome<Map<K,Set<Long>>> findIssueIdsAndSplitBySubQueries(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query where, Map<K, com.atlassian.query.Query> subqueries) Finds issue ids matching query and splits them by subqueries, each subset is associated with a key from the subqueries map.- Parameters:
user- user whose permissions are used to filter the issueswhere- query to find issuessubqueries- map of queries to split the issues by- Returns:
- issue ids split by keys associated with subqueries
-
getIssueCountPerStatus
@Nonnull ServiceOutcome<Map<String,Long>> getIssueCountPerStatus(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query) Find the count of issues in a given status.- Parameters:
user- user performing the operationquery- query to find issues- Returns:
- a map where the key is the status ID and the value is the count of issues in a given status
-