# Comment

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

Extends [SubItem](Import-SubItem.html).

## Properties

| Name | Type | Description |
| --- | --- | --- |
| attachments |  Array.<[Attachment](Import-Attachment.html)>  |  The files attached to the comment.   |
| author |  [User](Import-User.html)  |  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 |  `&apos;comment&apos;`  |  Identifies this object as a comment. YouTrack infers `&apos;comment&apos;` for values in [DocumentFields.comments](Import-DocumentFields.html#property-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](Import-User.html)  |  The user who last updated the entity.   |
| visibleToGroups |  Array.<[UserGroup](Import-UserGroup.html)>  |  The user groups that can view the comment. `null` by default.   |
| visibleToUsers |  Array.<[User](Import-User.html)>  |    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.    |

## See also

[SubItem](Import-SubItem.html) [Attachment](Import-Attachment.html) [User](Import-User.html) [UserGroup](Import-UserGroup.html)

