Interface UpdateOriginalIssueHelper

All Known Implementing Classes:
UpdateOriginalIssueHelperImpl

public interface UpdateOriginalIssueHelper
Updates the original issue that is being split with new summary and estimate. In addition, add a comment to the issue only if the issue has existing comments. Adding a comment at the point of splitting helps users identify comments that were written in the context of the bigger issue (pre-split) and those that were written after.
  • Method Summary

    Modifier and Type
    Method
    Description
    updateOriginalIssue(com.atlassian.jira.issue.Issue originalIssue, SplitIssueService.IssueData originalIssueUpdate, List<com.atlassian.jira.issue.Issue> splitIssues)
    Updates the original issue's summary and estimate.
    com.atlassian.jira.bc.issue.IssueService.UpdateValidationResult
    validateUpdate(com.atlassian.jira.issue.Issue originalIssue, SplitIssueService.IssueData updateData)
    Checks if it is possible to update the issue.
  • Method Details

    • updateOriginalIssue

      ServiceResult updateOriginalIssue(com.atlassian.jira.issue.Issue originalIssue, SplitIssueService.IssueData originalIssueUpdate, List<com.atlassian.jira.issue.Issue> splitIssues)
      Updates the original issue's summary and estimate. Also, add a comment only if the issue has existing comments.
      Parameters:
      originalIssue - Issue being split
      originalIssueUpdate - New summary and estimate
      splitIssues - A list of issues that were created as a result of the split.
      Returns:
      A valid result if issues was updated and commented successfully, else return an invalid result.
    • validateUpdate

      com.atlassian.jira.bc.issue.IssueService.UpdateValidationResult validateUpdate(com.atlassian.jira.issue.Issue originalIssue, SplitIssueService.IssueData updateData)
      Checks if it is possible to update the issue.
      Parameters:
      originalIssue - Issue to be updated
      updateData - Update information
      Returns:
      Validation result for the update operation