Interface IssueDataService

All Known Implementing Classes:
IssueDataServiceImpl

public interface IssueDataService
  • Method Summary

    Modifier and Type
    Method
    Description
    count(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.
    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 - user
      query - 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 issues
      query - 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 issues
      where - query to find issues
      subqueries - 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 operation
      query - 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