Class RapidViewIssueServiceImpl

java.lang.Object
com.atlassian.greenhopper.service.issue.RapidViewIssueServiceImpl
All Implemented Interfaces:
RapidViewIssueService

@ParametersAreNonnullByDefault public class RapidViewIssueServiceImpl extends Object implements RapidViewIssueService
  • Constructor Details

    • RapidViewIssueServiceImpl

      public RapidViewIssueServiceImpl()
  • Method Details

    • getIssuesForRapidView

      public ServiceOutcome<Page<RapidViewIssue>> getIssuesForRapidView(@Nullable com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, PageRequest request, @Nullable com.atlassian.query.Query query)
      Description copied from interface: RapidViewIssueService
      Returns a page with issues that belong to given rapid view. The rapid view contains issues which match rapid view's filter and state of the issue corresponds to states of one of the rapid view column. Issue which have issue type "epic" are not returned from "scrum" board. Issues are returned ordered by theirs rank. Query order has higher priority than default rank.
      Specified by:
      getIssuesForRapidView in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      rapidView - the rapidView which contains issues.
      request - information about the desired number of results and their offset.
      query - the jql query which limits the result only to these issues which fulfil its constraints.
      Returns:
      a page of found issues or error if operation failed.
    • getIssuesForBacklog

      public ServiceOutcome<Page<RapidViewIssue>> getIssuesForBacklog(@Nullable com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, PageRequest request, @Nullable com.atlassian.query.Query query)
      Description copied from interface: RapidViewIssueService
      Returns a page with issues that belong to backlog of given rapid view. The backlog contains all issues which are not done and are not assigned to a future or active sprint. Issues are returned ordered by theirs rank. Query order has higher priority than default rank.
      Specified by:
      getIssuesForBacklog in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      rapidView - the rapidView which contains issues.
      request - information about the desired number of results and their offset.
      query - the jql query which limits the result only to these issues which fulfil its constraints.
      Returns:
      a page of found issues or error if operation failed.
    • getIssuesForSprint

      public ServiceOutcome<Page<RapidViewIssue>> getIssuesForSprint(@Nullable com.atlassian.jira.user.ApplicationUser user, Sprint sprint, PageRequest request, @Nullable com.atlassian.query.Query query)
      Description copied from interface: RapidViewIssueService
      Returns a page with issues that belong to given sprint. Issues are returned ordered by theirs rank. Query order has higher priority than default rank.
      Specified by:
      getIssuesForSprint in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      sprint - the sprint which contains issues.
      request - information about the desired number of results and their offset.
      query - the jql query which limits the result only to these issues which fulfil its constraints.
      Returns:
      a page of found issues or error if operation failed.
    • getIssuesForSprintInBoardContext

      public ServiceOutcome<Page<RapidViewIssue>> getIssuesForSprintInBoardContext(@Nullable com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Sprint sprint, PageRequest request, @Nullable com.atlassian.query.Query query)
      Description copied from interface: RapidViewIssueService
      Returns a page with issues that belong to given sprint in given rapid view. Issues are returned ordered by theirs rank. Query order has higher priority than default rank.
      Specified by:
      getIssuesForSprintInBoardContext in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      rapidView - the rapidView in which context search will be performed.
      sprint - the sprint which contains issues.
      request - information about the desired number of results and their offset.
      query - the jql query which limits the result only to these issues which fulfil its constraints.
      Returns:
      a page of found issues or error if operation failed.
    • getIssuesForEpic

      public ServiceOutcome<Page<RapidViewIssue>> getIssuesForEpic(@Nullable com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Epic epic, PageRequest request, @Nullable com.atlassian.query.Query query)
      Description copied from interface: RapidViewIssueService
      Returns a page with issues that belong to the given epic in given rapid view. Issues are returned ordered by theirs rank. Query order has higher priority than default rank.
      Specified by:
      getIssuesForEpic in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      rapidView - the rapidView in which context search will be performed.
      epic - the epic which contains issues.
      request - information about the desired number of results and their offset.
      query - the jql query which limits the result only to these issues which fulfil its constraints.
      Returns:
      a page of found issues or error if operation failed.
    • getIssuesWithoutEpic

      public ServiceOutcome<Page<RapidViewIssue>> getIssuesWithoutEpic(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull RapidView rapidView, @Nonnull PageRequest request, @Nullable com.atlassian.query.Query query)
      Description copied from interface: RapidViewIssueService
      Returns a page with issues that do not belong to any epic in given rapid view. Issues are returned ordered by theirs rank. Query order has higher priority than default rank.
      Specified by:
      getIssuesWithoutEpic in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      rapidView - the rapidView in which context search will be performed.
      request - information about the desired number of results and their offset.
      query - the jql query which limits the result only to these issues which fulfil its constraints.
      Returns:
      a page of found issues or error if operation failed.
    • getIssuesForEpic

      public ServiceOutcome<Page<RapidViewIssue>> getIssuesForEpic(@Nullable com.atlassian.jira.user.ApplicationUser user, Epic epic, PageRequest request, @Nullable com.atlassian.query.Query query)
      Description copied from interface: RapidViewIssueService
      Returns a page with issues that belong to the given epic. Issues are returned ordered by theirs rank. Query order has higher priority than default rank.
      Specified by:
      getIssuesForEpic in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      epic - the epic which contains issues.
      request - information about the desired number of results and their offset.
      query - the jql query which limits the result only to these issues which fulfil its constraints.
      Returns:
      a page of found issues or error if operation failed.
    • getIssuesWithoutEpic

      public ServiceOutcome<Page<RapidViewIssue>> getIssuesWithoutEpic(@Nullable com.atlassian.jira.user.ApplicationUser user, PageRequest request, @Nullable com.atlassian.query.Query query)
      Description copied from interface: RapidViewIssueService
      Returns a page with issues that do not belong to any epic. Issues are returned ordered by theirs rank. Query order has higher priority than default rank.
      Specified by:
      getIssuesWithoutEpic in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      request - information about the desired number of results and their offset.
      query - the jql query which limits the result only to these issues which fulfil its constraints.
      Returns:
      a page of found issues or error if operation failed.
    • getIssueById

      public ServiceOutcome<RapidViewIssue> getIssueById(@Nullable com.atlassian.jira.user.ApplicationUser user, Long issueId)
      Description copied from interface: RapidViewIssueService
      Returns a single issue.
      Specified by:
      getIssueById in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      issueId - the id of requested issue.
      Returns:
      either an issue or error if operation failed.
    • getIssueByKey

      public ServiceOutcome<RapidViewIssue> getIssueByKey(@Nullable com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.IssueKey issueKey)
      Description copied from interface: RapidViewIssueService
      Returns a single issue.
      Specified by:
      getIssueByKey in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      issueKey - the key of requested issue.
      Returns:
      either an issue or error if operation failed.
    • getIssueEstimationForBoard

      public ServiceOutcome<FieldValue> getIssueEstimationForBoard(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull com.atlassian.jira.issue.Issue issue, @Nonnull RapidView rapidView)
      Description copied from interface: RapidViewIssueService
      Returns the issue estimation for board.
      Specified by:
      getIssueEstimationForBoard in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      issue - the issue that is going to be estimated.
      rapidView - the rapid view that is required to determine which field is used for estimation.
      Returns:
      a service result which is either valid or contains error messages.
    • estimateIssueForBoard

      public ServiceOutcome<FieldValue> estimateIssueForBoard(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull com.atlassian.jira.issue.Issue issue, @Nonnull RapidView rapidView, @Nonnull String value)
      Description copied from interface: RapidViewIssueService
      Estimate the issue. The format of the field depends on the field used for board estimation. Estimation config can be check by RapidViewConfigService.getEstimationConfig(com.atlassian.jira.user.ApplicationUser, com.atlassian.greenhopper.model.rapid.RapidView) method.
      Specified by:
      estimateIssueForBoard in interface RapidViewIssueService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      issue - the issue that is going to be estimated.
      rapidView - the rapid view that is required to determine which field is used for estimation.
      value - the of new estimation.
      Returns:
      a service result which is either valid or contains error messages.