A comment.

interface Comment {
    author?: UserDetails;
    body?: unknown;
    created?: string;
    id?: string;
    jsdAuthorCanSeeRequest?: boolean;
    jsdPublic?: boolean;
    properties?: EntityProperty[];
    renderedBody?: string;
    self?: string;
    updateAuthor?: UserDetails;
    updated?: string;
    visibility?: Visibility;
}

Hierarchy

  • Record<string, unknown>
    • Comment

Properties

author?: UserDetails

The ID of the user who created the comment.

body?: unknown

The comment text in Atlassian Document Format.

created?: string

The date and time at which the comment was created.

id?: string

The ID of the comment.

jsdAuthorCanSeeRequest?: boolean

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 issuesfor information on setting up this feature.

jsdPublic?: boolean

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 operation.

properties?: EntityProperty[]

A list of comment properties. Optional on create and update.

renderedBody?: string

The rendered version of the comment.

self?: string

The URL of the comment.

updateAuthor?: UserDetails

The ID of the user who updated the comment last.

updated?: string

The date and time at which the comment was updated last.

visibility?: Visibility

The group or role to which this comment is visible. Optional on create and update.