Comment on a Work Item.

interface Comment {
    _links?: any;
    createdBy?: IdentityRef;
    createdDate?: Date;
    createdOnBehalfDate?: Date;
    createdOnBehalfOf?: IdentityRef;
    format?: CommentFormat;
    id?: number;
    isDeleted?: boolean;
    mentions?: CommentMention[];
    modifiedBy?: IdentityRef;
    modifiedDate?: Date;
    reactions?: CommentReaction[];
    renderedText?: string;
    text?: string;
    url?: string;
    version?: number;
    workItemId?: number;
}

Hierarchy (View Summary)

Properties

_links?: any

Link references to related REST resources.

createdBy?: IdentityRef

IdentityRef of the creator of the comment.

createdDate?: Date

The creation date of the comment.

createdOnBehalfDate?: Date

Effective Date/time value for adding the comment. Can be optionally different from CreatedDate.

createdOnBehalfOf?: IdentityRef

Identity on whose behalf this comment has been added. Can be optionally different from CreatedBy.

format?: CommentFormat

Represents the possible types for the comment format.

id?: number

The id assigned to the comment.

isDeleted?: boolean

Indicates if the comment has been deleted.

mentions?: CommentMention[]

The mentions of the comment.

modifiedBy?: IdentityRef

IdentityRef of the user who last modified the comment.

modifiedDate?: Date

The last modification date of the comment.

reactions?: CommentReaction[]

The reactions of the comment.

renderedText?: string

The text of the comment in HTML format.

text?: string

The text of the comment.

url?: string

REST URL for the resource.

version?: number

The current version of the comment.

workItemId?: number

The id of the work item this comment belongs to.