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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionaddComment(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.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)
-
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 commentissues- Issues to comment oncommentBody- The actual body of the comment being addedcommentVisibility- 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 emptyIllegalArgumentException- 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)
-