@ExperimentalApi
@PublicApi
public interface ServiceDeskCommentService
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDeskComment> |
createInternalComment(com.atlassian.jira.user.ApplicationUser user,
ValidatedInternalCommentParameters commentParameters)
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDeskComment> |
createPublicComment(com.atlassian.jira.user.ApplicationUser user,
ValidatedPublicCommentParameters commentParameters)
|
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)
|
ServiceDeskCommentCreateParameters.Builder |
newCreateBuilder()
Return a new
ServiceDeskCommentCreateParameters.Builder to build parameter to create comments |
ServiceDeskCommentQuery.Builder |
newQueryBuilder() |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ValidatedInternalCommentParameters> |
validateInternalComment(com.atlassian.jira.user.ApplicationUser user,
CreateInternalCommentParameters commentPublicParameters)
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ValidatedPublicCommentParameters> |
validatePublicComment(com.atlassian.jira.user.ApplicationUser user,
CreatePublicCommentParameters commentInternalParameters)
|
@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ValidatedPublicCommentParameters> validatePublicComment(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull CreatePublicCommentParameters commentInternalParameters)
ValidatedPublicCommentParameters
if the user is able to make a comment with the
given comment parametersuser
- the user to make the commentcommentInternalParameters
- the comment parameters@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ValidatedInternalCommentParameters> validateInternalComment(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull CreateInternalCommentParameters commentPublicParameters)
ValidatedInternalCommentParameters
if the user is able to make a comment with the
given comment parametersuser
- the user to make the commentcommentPublicParameters
- the comment parameters@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDeskComment> createPublicComment(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull ValidatedPublicCommentParameters commentParameters)
Comment
against a com.atlassian.jira.issue.Issue
user
- the user making the commentcommentParameters
- the comment parameters used to create the commentServiceDeskComment
@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDeskComment> createInternalComment(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull ValidatedInternalCommentParameters commentParameters)
Comment
against a com.atlassian.jira.issue.Issue
An error will be returned if the user does not have permission to create a public comment or
if the comment parameters fail validation.
An error will also be returned if the issue specified does not belong to an active Service Desk.user
- the user making the commentcommentParameters
- the comment parameters used to create the commentServiceDeskComment
@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 ServiceDeskComment
ServiceDeskComment
with the given id if it exists.@Nonnull @Deprecated 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 Comment
ServiceDeskComment
associated with the given Comment
ServiceDeskCommentCreateParameters.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 CustomerRequest
user
- the user executing the querycommentQuery
- the query to filter commentsAnError
if failure, or a paged collection of ServiceDeskComment
Copyright © 2017 Atlassian. All rights reserved.