Developer Portal for YouTrack and Hub Help

Comment

Represents a comment entity. Use it in an import script.

Extends SubItem.

Properties

Name

Type

Description

attachments

Array.< Attachment >

The files attached to the comment.

author

User

The author of the entity.

created

string

The date and time when the entity was created. The expected string format is one of those returned by the getTimestampFormats function.

id

string

The ID of the entity.

type

'comment'

Identifies this object as a comment. YouTrack infers 'comment' for values in DocumentFields.comments, so you can omit this property.

updated

string

The date and time when the entity was last updated. The expected string format is one of those returned by the getTimestampFormats function.

updatedBy

User

The user who last updated the entity.

visibleToGroups

Array.< UserGroup >

The user groups that can view the comment. null by default.

visibleToUsers

Array.< User >

The users who can view the comment.

If none of the visibleToUsers and the visibleToGroups parameters are specified, the comment becomes visible to issue or article readers.

null by default.

10 September 2026