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 TypeMethodDescriptionupdateOriginalIssue(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.UpdateValidationResultvalidateUpdate(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 splitoriginalIssueUpdate- New summary and estimatesplitIssues- 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 updatedupdateData- Update information- Returns:
- Validation result for the update operation
-