Interface ServiceDeskCommentCreateParameters
@PublicApi
public interface ServiceDeskCommentCreateParameters
Parameter to create a comment on a Jira Service Management's request.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.jira.user.ApplicationUser
author()
body()
Optional text body of the Comment.com.atlassian.jira.issue.Issue
issue()
boolean
Required parameter to indicate the Comment's visibility.List<com.atlassian.jira.issue.attachment.TemporaryAttachmentId>
Optional list temporary attachment ID's to associate with the Comment.
-
Method Details
-
author
@Nonnull com.atlassian.jira.user.ApplicationUser author()- Returns:
- author who creates the Comment
-
issue
@Nonnull com.atlassian.jira.issue.Issue issue()- Returns:
- the
Issue
theComment
associated to
-
body
Optional text body of the Comment. Either ofbody()
ortemporaryAttachmentIds()
, or both must be provided- Returns:
- text body of the Comment.
null
is not provided
-
temporaryAttachmentIds
Optional list temporary attachment ID's to associate with the Comment. Either ofbody()
ortemporaryAttachmentIds()
, or both must be providedJIRA manages a list of user's
TemporaryAttachment
's by user session, and will expire them once the session expired.- Returns:
- list of temporary attachment IDs. Empty list if not provided
-
publicComment
boolean publicComment()Required parameter to indicate the Comment's visibility. If set totrue
, the Comment is visible to Customers. Otherwise, the comment is internal, and is only visible to Agents or Unlicenced users- Returns:
- true if public comment, false otherwise
-