@PublicApi
public interface ServiceDeskCommentService
Modifier and Type | Method and Description |
---|---|
ServiceDeskComment |
createServiceDeskComment(com.atlassian.jira.user.ApplicationUser user,
ServiceDeskCommentCreateParameters createParameters)
Create a new Service Desk 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 ServiceDeskComment
ServiceDeskComment
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 Comment
ServiceDeskComment
associated with the given Comment
ServiceDeskServiceException
- 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 CustomerRequest
user
- the user executing the querycommentQuery
- the query to filter commentsAnError
if failure, or a paged collection of ServiceDeskComment
ServiceDeskServiceException
- on errorCopyright © 2019 Atlassian. All rights reserved.