Class Comment
java.lang.Object
io.github.primelib.jira4j.restv3.model.Comment
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class Comment
extends Object
Comment
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommentAuthor
protected Object
The comment text in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/).protected OffsetDateTime
The date and time at which the comment was created.protected String
The ID of the comment.protected Boolean
Whether the comment was added from an email sent by a person who is not part of the issue.protected Boolean
Whether the comment is visible in Jira Service Desk.protected List<EntityProperty>
A list of comment properties.protected String
The rendered version of the comment.protected String
The URL of the comment.protected CommentUpdateAuthor
protected OffsetDateTime
The date and time at which the comment was updated last.protected Visibility
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Comment()
Comment
(CommentAuthor author, Object body, OffsetDateTime created, String id, Boolean jsdAuthorCanSeeRequest, Boolean jsdPublic, List<EntityProperty> properties, String renderedBody, String self, CommentUpdateAuthor updateAuthor, OffsetDateTime updated, Visibility visibility) Constructs a validated instance ofComment
.Constructs a validated instance ofComment
. -
Method Summary
Modifier and TypeMethodDescriptionauthor()
author
(CommentAuthor author) body()
The comment text in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/).The comment text in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/).static Comment.CommentBuilder
builder()
protected boolean
created()
The date and time at which the comment was created.created
(OffsetDateTime created) The date and time at which the comment was created.boolean
int
hashCode()
id()
The ID of the comment.The ID of the comment.Whether the comment was added from an email sent by a person who is not part of the issue.jsdAuthorCanSeeRequest
(Boolean jsdAuthorCanSeeRequest) Whether the comment was added from an email sent by a person who is not part of the issue.Whether the comment is visible in Jira Service Desk.Whether the comment is visible in Jira Service Desk.A list of comment properties.properties
(List<EntityProperty> properties) A list of comment properties.The rendered version of the comment.renderedBody
(String renderedBody) The rendered version of the comment.self()
The URL of the comment.The URL of the comment.toString()
updateAuthor
(CommentUpdateAuthor updateAuthor) updated()
The date and time at which the comment was updated last.updated
(OffsetDateTime updated) The date and time at which the comment was updated last.visibility
(Visibility visibility)
-
Field Details
-
author
-
body
The comment text in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). -
created
The date and time at which the comment was created. -
id
The ID of the comment. -
jsdAuthorCanSeeRequest
Whether the comment was added from an email sent by a person who is not part of the issue. See [Allow external emails to be added as comments on issues](https://support.atlassian.com/jira-service-management-cloud/docs/allow-external-emails-to-be-added-as-comments-on-issues/)for information on setting up this feature. -
jsdPublic
Whether the comment is visible in Jira Service Desk. Defaults to true when comments are created in the Jira Cloud Platform. This includes when the site doesn't use Jira Service Desk or the project isn't a Jira Service Desk project and, therefore, there is no Jira Service Desk for the issue to be visible on. To create a comment with its visibility in Jira Service Desk set to false, use the Jira Service Desk REST API [Create request comment](https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-request-issueIdOrKey-comment-post) operation. -
properties
A list of comment properties. Optional on create and update. -
renderedBody
The rendered version of the comment. -
self
The URL of the comment. -
updateAuthor
-
updated
The date and time at which the comment was updated last. -
visibility
-
-
Constructor Details
-
Comment
Constructs a validated instance ofComment
.- Parameters:
spec
- the specification to process
-
Comment
@Internal public Comment(CommentAuthor author, Object body, OffsetDateTime created, String id, Boolean jsdAuthorCanSeeRequest, Boolean jsdPublic, List<EntityProperty> properties, String renderedBody, String self, CommentUpdateAuthor updateAuthor, OffsetDateTime updated, Visibility visibility) Constructs a validated instance ofComment
.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
Comment(Consumer)
instead.- Parameters:
author
- authorbody
- The comment text in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/).created
- The date and time at which the comment was created.id
- The ID of the comment.jsdAuthorCanSeeRequest
- Whether the comment was added from an email sent by a person who is not part of the issue. See [Allow external emails to be added as comments on issues](https://support.atlassian.com/jira-service-management-cloud/docs/allow-external-emails-to-be-added-as-comments-on-issues/)for information on setting up this feature.jsdPublic
- Whether the comment is visible in Jira Service Desk. Defaults to true when comments are created in the Jira Cloud Platform. This includes when the site doesn't use Jira Service Desk or the project isn't a Jira Service Desk project and, therefore, there is no Jira Service Desk for the issue to be visible on. To create a comment with its visibility in Jira Service Desk set to false, use the Jira Service Desk REST API [Create request comment](https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-request-issueIdOrKey-comment-post) operation.properties
- A list of comment properties. Optional on create and update.renderedBody
- The rendered version of the comment.self
- The URL of the comment.updateAuthor
- updateAuthorupdated
- The date and time at which the comment was updated last.visibility
- visibility
-
Comment
protected Comment()
-
-
Method Details
-
builder
-
author
-
body
The comment text in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). -
created
The date and time at which the comment was created. -
id
The ID of the comment. -
jsdAuthorCanSeeRequest
Whether the comment was added from an email sent by a person who is not part of the issue. See [Allow external emails to be added as comments on issues](https://support.atlassian.com/jira-service-management-cloud/docs/allow-external-emails-to-be-added-as-comments-on-issues/)for information on setting up this feature. -
jsdPublic
Whether the comment is visible in Jira Service Desk. Defaults to true when comments are created in the Jira Cloud Platform. This includes when the site doesn't use Jira Service Desk or the project isn't a Jira Service Desk project and, therefore, there is no Jira Service Desk for the issue to be visible on. To create a comment with its visibility in Jira Service Desk set to false, use the Jira Service Desk REST API [Create request comment](https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-request-issueIdOrKey-comment-post) operation. -
properties
A list of comment properties. Optional on create and update. -
renderedBody
The rendered version of the comment. -
self
The URL of the comment. -
updateAuthor
-
updated
The date and time at which the comment was updated last. -
visibility
-
author
- Returns:
this
.
-
body
The comment text in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/).- Returns:
this
.
-
created
The date and time at which the comment was created.- Returns:
this
.
-
id
The ID of the comment.- Returns:
this
.
-
jsdAuthorCanSeeRequest
Whether the comment was added from an email sent by a person who is not part of the issue. See [Allow external emails to be added as comments on issues](https://support.atlassian.com/jira-service-management-cloud/docs/allow-external-emails-to-be-added-as-comments-on-issues/)for information on setting up this feature.- Returns:
this
.
-
jsdPublic
Whether the comment is visible in Jira Service Desk. Defaults to true when comments are created in the Jira Cloud Platform. This includes when the site doesn't use Jira Service Desk or the project isn't a Jira Service Desk project and, therefore, there is no Jira Service Desk for the issue to be visible on. To create a comment with its visibility in Jira Service Desk set to false, use the Jira Service Desk REST API [Create request comment](https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-request-issueIdOrKey-comment-post) operation.- Returns:
this
.
-
properties
A list of comment properties. Optional on create and update.- Returns:
this
.
-
renderedBody
The rendered version of the comment.- Returns:
this
.
-
self
The URL of the comment.- Returns:
this
.
-
updateAuthor
- Returns:
this
.
-
updated
The date and time at which the comment was updated last.- Returns:
this
.
-
visibility
- Returns:
this
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-