@PublicApi
public interface ServiceDeskCommentService
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDeskComment> |
createServiceDeskComment(com.atlassian.jira.user.ApplicationUser user,
ServiceDeskCommentCreateParameters createParameters)
Create a new Service Desk comment with the provided
ApplicationUser as the author |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<ServiceDeskComment>> |
getCommentsOfRequest(com.atlassian.jira.user.ApplicationUser user,
ServiceDeskCommentQuery commentQuery)
Retrieve a page of
ServiceDeskComment of a particular CustomerRequest |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDeskComment> |
getServiceDeskCommentById(com.atlassian.jira.user.ApplicationUser user,
Long commentId)
Gets a
ServiceDeskComment from a comment id. |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,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 com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,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.@Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,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 CommentServiceDeskCommentCreateParameters.Builder newCreateBuilder()
ServiceDeskCommentCreateParameters.Builder to build parameter to create comments@Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,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 failServiceDeskCommentQuery.Builder newQueryBuilder()
ServiceDeskCommentQuery.Builder to build comment query@Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,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 ServiceDeskCommentCopyright © 2018 Atlassian. All rights reserved.