Interface BulkCommentService

All Known Implementing Classes:
BulkCommentServiceImpl

public interface BulkCommentService
Service to add a comment to one or more issues. All specified issues will be commented with the same comment and visibility level.
  • Method Details

    • addComment

      ServiceOutcome<BulkCommentService.Result> addComment(com.atlassian.jira.user.ApplicationUser user, Collection<com.atlassian.jira.issue.Issue> issues, String commentBody, com.atlassian.jira.issue.fields.CommentVisibility commentVisibility)
      Add the specified comment to one or more issues with the specified visibility.
      Parameters:
      user - Author of the comment
      issues - Issues to comment on
      commentBody - The actual body of the comment being added
      commentVisibility - Visibility of comment being added, e.g. public, restricted to certain roles, restricted to certain groups
      Returns:
      A result object that contains a list of actual issues that were commented on and any error encountered during the process (if any).
      Throws:
      IllegalArgumentException - when the passed in issue collection is empty
      IllegalArgumentException - when the passed in commentBody is null or empty.
    • addComment

      ServiceOutcome<BulkCommentService.Result> addComment(com.atlassian.jira.user.ApplicationUser user, Collection<com.atlassian.jira.issue.Issue> issues, String commentBody, com.atlassian.jira.issue.fields.CommentVisibility commentVisibility, Collection<String> temporaryAttachments)