@Override public Issue updateIssue(ApplicationUser user, MutableIssue issue, UpdateIssueRequest updateIssueRequest) { validateUpdateIssueTextFieldsLength(issue); // Get the original issue before we store the new data GenericValue originalIssueGV = issue.getGenericValue(); // Generate all of our change items and give the fields a chance to store their changes if needed + build // up the modified text to analyze DefaultIssueChangeHolder issueChangeHolder = updateFieldValues(issue, new StringBuffer()); // Reset the fields as they all have been persisted to the db. issue.resetModifiedFields(); // Perform the update which will also fire the event and create the change group/items doUpdate(user, issue, originalIssueGV, issueChangeHolder, updateIssueRequest); return issue; }
targetIssue.resetModifiedFields();
targetSubTask.resetModifiedFields();