Class EstimableIssueDataServiceImpl

java.lang.Object
com.atlassian.greenhopper.service.issue.EstimableIssueDataServiceImpl
All Implemented Interfaces:
EstimableIssueDataService

@Service public class EstimableIssueDataServiceImpl extends Object implements EstimableIssueDataService
  • Field Details

    • FIELDS

      public static final Set<String> FIELDS
  • Constructor Details

    • EstimableIssueDataServiceImpl

      public EstimableIssueDataServiceImpl()
    • EstimableIssueDataServiceImpl

      public EstimableIssueDataServiceImpl(com.atlassian.jira.search.issue.IssueDocumentSearchService issueDocumentSearchService, EstimateStatisticService estimateStatisticService)
  • Method Details

    • findEstimableIssueKeys

      public ServiceOutcome<Set<String>> findEstimableIssueKeys(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull com.atlassian.query.Query query, @Nonnull StatisticsField statisticsField, @Nullable Set<String> maybeIssueKeys)
      Specified by:
      findEstimableIssueKeys in interface EstimableIssueDataService
      Parameters:
      user - the user performing the search action
      query - a query to filter the data by
      statisticsField - represents an instance of a StatisticsFieldConfig for a RapidView for example "timeoriginalestimate".
      maybeIssueKeys - the issue keys that should be taken into account, if null it means to use all
      Returns:
      if ServiceOutcome is valid, then it contains the issue keys of issues that are estimable, the error messages otherwise
    • isIssueEstimable

      public boolean isIssueEstimable(@Nonnull com.atlassian.jira.search.Document doc, @Nonnull StatisticsField statisticsField, @Nullable Set<String> maybeIssueKeys)
      Specified by:
      isIssueEstimable in interface EstimableIssueDataService
      Parameters:
      doc - document to search through
      statisticsField - represents an instance of a StatisticsFieldConfig for a RapidView for example "timeoriginalestimate".
      maybeIssueKeys - the issue keys that should be taken into account, if null it means to use all
      Returns:
      true if the issue is estimable, false otherwise