Interface IssueDataService

All Known Implementing Classes:
IssueDataServiceImpl

public interface IssueDataService
  • 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
    • splitIssueIdsBySubQueries

      @Nonnull <K> ServiceOutcome<Map<K,Set<Long>>> splitIssueIdsBySubQueries(Set<Long> issues, Map<K,com.atlassian.query.Query> subqueries)
      Splits provided issue ids by subqueries, each subset is associated with a key from the subqueries map. The number of issues returned will be limited by the max result window specified for the used search platform. There's no permission check made in this method, as all issues passed should already be validated.
      Parameters:
      issues - that will be split between swimlanes
      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