Interface SplitIssueService
- All Known Implementing Classes:
SplitIssueServiceImpl
public interface SplitIssueService
Top level service that coordinates various tasks that need to be done when splitting an issue.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Represents summary and estimate overrides for new issues that need to be created as a result of the split.static class
static class
-
Method Summary
Modifier and TypeMethodDescriptioncanSplit
(com.atlassian.jira.issue.Issue issue) Checks whether the currently logged in user has sufficient permissions to perform split operation on the specified issue.getUpdateErrors
(com.atlassian.jira.issue.Issue originalIssue, SplitIssueService.IssueData originalIssueUpdate, List<SplitIssueService.IssueData> newIssues) Checks if the values provided for splitting the issue are correct.ServiceOutcome<List<com.atlassian.jira.issue.Issue>>
split
(com.atlassian.jira.issue.Issue issue, SplitIssueService.IssueData originalIssueUpdate, List<SplitIssueService.IssueData> newIssues) Perform the actual split on the specified issue.
-
Method Details
-
split
ServiceOutcome<List<com.atlassian.jira.issue.Issue>> split(com.atlassian.jira.issue.Issue issue, SplitIssueService.IssueData originalIssueUpdate, List<SplitIssueService.IssueData> newIssues) Perform the actual split on the specified issue.- Parameters:
issue
- Issue being splitoriginalIssueUpdate
- Updates to the issue being split.newIssues
- Overrides for new issues being created- Returns:
- A service outcome that contains a collection of issues that were created as a result of the split.
-
canSplit
Checks whether the currently logged in user has sufficient permissions to perform split operation on the specified issue.- Parameters:
issue
- Issue being split- Returns:
- A valid result if the currently logged in user has sufficient permissions to perform split operation on the specified issue, else returns an invalid result.
-
getUpdateErrors
ServiceOutcome<SplitIssueService.SplitIssueErrorReport> getUpdateErrors(com.atlassian.jira.issue.Issue originalIssue, SplitIssueService.IssueData originalIssueUpdate, List<SplitIssueService.IssueData> newIssues) Checks if the values provided for splitting the issue are correct. If they are not, a non-emptySplitIssueService.SplitIssueErrorReport
is returned, which contains error messages for each invalid field.- Parameters:
originalIssue
- Original issue that is being updatedoriginalIssueUpdate
- New data for the original issuenewIssues
- Data for additional issues that should be created- Returns:
- Errors if the issue cannot be split. Note that the
ServiceOutcome
will always be valid, if the issue can be split the errors returned will be empty
-