@PublicApi
public interface ServiceDeskCommentService
| Modifier and Type | Method and Description |
|---|---|
ServiceDeskComment |
createServiceDeskComment(com.atlassian.jira.user.ApplicationUser user,
ServiceDeskCommentCreateParameters createParameters)
Create a new service project comment with the provided
ApplicationUser as the author |
PagedResponse<ServiceDeskComment> |
getCommentsOfRequest(com.atlassian.jira.user.ApplicationUser user,
ServiceDeskCommentQuery commentQuery)
Retrieve a page of
ServiceDeskComment of a particular CustomerRequest |
ServiceDeskComment |
getServiceDeskCommentById(com.atlassian.jira.user.ApplicationUser user,
Long commentId)
Gets a
ServiceDeskComment from a comment id. |
ServiceDeskComment |
getServiceDeskCommentByJiraComment(com.atlassian.jira.user.ApplicationUser user,
com.atlassian.jira.issue.comments.Comment comment)
Gets a
ServiceDeskComment from an associated Comment. |
ServiceDeskCommentCreateParameters.Builder |
newCreateBuilder()
Return a new
ServiceDeskCommentCreateParameters.Builder to build parameter to create comments |
ServiceDeskCommentQuery.Builder |
newQueryBuilder() |
@Nonnull ServiceDeskComment getServiceDeskCommentById(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull Long commentId)
ServiceDeskComment from a comment id.
A ServiceDeskComment shares the same id as the underlying Jira Comment.commentId - the id of the ServiceDeskCommentServiceDeskComment with the given id if it exists.ServiceDeskServiceException - on error@Nonnull ServiceDeskComment getServiceDeskCommentByJiraComment(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull com.atlassian.jira.issue.comments.Comment comment)
ServiceDeskComment from an associated Comment.
Each ServiceDeskComment is associated with exactly one Comment.comment - the JIRA CommentServiceDeskComment associated with the given CommentServiceDeskServiceException - on errorServiceDeskCommentCreateParameters.Builder newCreateBuilder()
ServiceDeskCommentCreateParameters.Builder to build parameter to create comments@Nonnull ServiceDeskComment createServiceDeskComment(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull ServiceDeskCommentCreateParameters createParameters)
ApplicationUser as the authoruser - the author of the commentcreateParameters - contains comment body and visibility (public/internal)ServiceDeskComment if successful, or AnError if failServiceDeskServiceException - on errorServiceDeskCommentQuery.Builder newQueryBuilder()
ServiceDeskCommentQuery.Builder to build comment query@Nonnull PagedResponse<ServiceDeskComment> getCommentsOfRequest(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull ServiceDeskCommentQuery commentQuery)
ServiceDeskComment of a particular CustomerRequestuser - the user executing the querycommentQuery - the query to filter commentsAnError if failure, or a paged collection of ServiceDeskCommentServiceDeskServiceException - on errorCopyright © 2022 Atlassian. All rights reserved.