forked from MrRefactoring/jira.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomment.ts
44 lines (43 loc) · 1.9 KB
/
comment.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { Document } from './document';
import { EntityProperty } from './entityProperty';
import { UserDetails } from './userDetails';
import { Visibility } from './visibility';
/** A comment. */
export interface Comment {
/** The URL of the comment. */
self?: string;
/** The ID of the comment. */
id?: string;
author?: UserDetails;
/**
* The comment text in [Atlassian Document
* Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/).
*/
body?: Document;
/** The rendered version of the comment. */
renderedBody?: string;
updateAuthor?: UserDetails;
/** The date and time at which the comment was created. */
created?: string;
/** The date and time at which the comment was updated last. */
updated?: string;
visibility?: Visibility;
/**
* 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.
*/
jsdPublic?: 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
* 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.
*/
jsdAuthorCanSeeRequest?: boolean;
/** A list of comment properties. Optional on create and update. */
properties?: EntityProperty[];
}