Class RapidViewIssueServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.issue.RapidViewIssueServiceImpl
- All Implemented Interfaces:
RapidViewIssueService
@ParametersAreNonnullByDefault
public class RapidViewIssueServiceImpl
extends Object
implements RapidViewIssueService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionestimateIssueForBoard(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue, RapidView rapidView, String value) Estimate the issue.getIssueById(com.atlassian.jira.user.ApplicationUser user, Long issueId) Returns a single issue.getIssueByKey(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.IssueKey issueKey) Returns a single issue.getIssueEstimationForBoard(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue, RapidView rapidView) Returns the issue estimation for board.getIssuesForBacklog(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, PageRequest request, com.atlassian.query.Query query) Returns a page with issues that belong to backlog of given rapid view.getIssuesForEpic(com.atlassian.jira.user.ApplicationUser user, Epic epic, PageRequest request, com.atlassian.query.Query query) Returns a page with issues that belong to the given epic.getIssuesForEpic(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Epic epic, PageRequest request, com.atlassian.query.Query query) Returns a page with issues that belong to the given epic in given rapid view.getIssuesForRapidView(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, PageRequest request, com.atlassian.query.Query query) Returns a page with issues that belong to given rapid view.getIssuesForSprint(com.atlassian.jira.user.ApplicationUser user, Sprint sprint, PageRequest request, com.atlassian.query.Query query) Returns a page with issues that belong to given sprint.getIssuesForSprintInBoardContext(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Sprint sprint, PageRequest request, com.atlassian.query.Query query) Returns a page with issues that belong to given sprint in given rapid view.getIssuesWithoutEpic(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, PageRequest request, com.atlassian.query.Query query) Returns a page with issues that do not belong to any epic in given rapid view.getIssuesWithoutEpic(com.atlassian.jira.user.ApplicationUser user, PageRequest request, com.atlassian.query.Query query) Returns a page with issues that do not belong to any epic.
-
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:RapidViewIssueServiceReturns 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:
getIssuesForRapidViewin interfaceRapidViewIssueService- 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:RapidViewIssueServiceReturns 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:
getIssuesForBacklogin interfaceRapidViewIssueService- 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:RapidViewIssueServiceReturns 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:
getIssuesForSprintin interfaceRapidViewIssueService- 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:RapidViewIssueServiceReturns 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:
getIssuesForSprintInBoardContextin interfaceRapidViewIssueService- 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:RapidViewIssueServiceReturns 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:
getIssuesForEpicin interfaceRapidViewIssueService- 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:RapidViewIssueServiceReturns 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:
getIssuesWithoutEpicin interfaceRapidViewIssueService- 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:RapidViewIssueServiceReturns 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:
getIssuesForEpicin interfaceRapidViewIssueService- 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:RapidViewIssueServiceReturns 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:
getIssuesWithoutEpicin interfaceRapidViewIssueService- 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:RapidViewIssueServiceReturns a single issue.- Specified by:
getIssueByIdin interfaceRapidViewIssueService- 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:RapidViewIssueServiceReturns a single issue.- Specified by:
getIssueByKeyin interfaceRapidViewIssueService- 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:RapidViewIssueServiceReturns the issue estimation for board.- Specified by:
getIssueEstimationForBoardin interfaceRapidViewIssueService- 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:RapidViewIssueServiceEstimate the issue. The format of the field depends on the field used for board estimation. Estimation config can be check byRapidViewConfigService.getEstimationConfig(com.atlassian.jira.user.ApplicationUser, com.atlassian.greenhopper.model.rapid.RapidView)method.- Specified by:
estimateIssueForBoardin interfaceRapidViewIssueService- 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.
-