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.
  • 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 split
      originalIssueUpdate - 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

      ServiceResult canSplit(com.atlassian.jira.issue.Issue issue)
      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-empty SplitIssueService.SplitIssueErrorReport is returned, which contains error messages for each invalid field.
      Parameters:
      originalIssue - Original issue that is being updated
      originalIssueUpdate - New data for the original issue
      newIssues - 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