private void dispatchIssueCommentEditedEvent(Comment comment, Map<String, Object> parameters) { IssueEventBundle issueCommentBundle = issueEventBundleFactory.createCommentEditedBundle( comment.getIssue(), comment.getUpdateAuthorApplicationUser(), comment, parameters); issueEventManager.dispatchEvent(issueCommentBundle); dispatchEvent(EventType.ISSUE_COMMENT_EDITED_ID, comment, parameters); }
private void populateGenericValueFromComment(Comment updatedComment, GenericValue commentGV) { ApplicationUser updateAuthor = updatedComment.getUpdateAuthorApplicationUser(); commentGV.setString("updateauthor", updateAuthor == null ? null : updateAuthor.getKey()); commentGV.setString("body", updatedComment.getBody()); commentGV.setString("level", updatedComment.getGroupLevel()); commentGV.set("rolelevel", updatedComment.getRoleLevelId()); commentGV.set( "updated", JiraDateUtils.copyOrCreateTimestampNullsafe(updatedComment.getUpdated())); }