---
schema: rendered-html/v1
title: "Comment | Developer Portal for YouTrack and Hub Documentation"
source_url: https://www.jetbrains.com/help/youtrack/devportal/Import-Comment.html
generated_at: 2026-06-11T14:41:24.206856+00:00
---

Feedback

Thanks for your feedback!

Was this page helpful?

YesNo

Developer Portal for YouTrack and Hub

- Developer Portal
- Apps
- MCP Tools
- YouTrack Workflows
- YouTrack Import Scripts
- Get Started with Import Scripts
- YouTrack Import API
- [Article](jetbrains__com__help__youtrack__devportal__import-article.md)
- [Attachment](jetbrains__com__help__youtrack__devportal__import-attachment.md)
- [AttachmentContentWithMetadata](jetbrains__com__help__youtrack__devportal__import-attachmentcontentwithmetadata.md)
- [AttachmentMetaData](jetbrains__com__help__youtrack__devportal__import-attachmentmetadata.md)
- [Build](jetbrains__com__help__youtrack__devportal__import-build.md)
- [Comment](Import-Comment.html)
- [DateFieldValue](jetbrains__com__help__youtrack__devportal__import-datefieldvalue.md)
- DateTimeFieldValue
- DemoClient
- DocumentFieldValue
- DocumentFieldValues
- DocumentFieldValuesStringPresentation
- DocumentFields
- DocumentInfo
- EnumElement
- EnumerableFieldPresentation
- FieldChange
- FieldValue
- FloatFieldValue
- GroupProjectField
- HistoryItem
- IntegerFieldValue
- Issue
- LinkType
- LinkValue
- OwnedValue
- PeriodFieldValue
- Project
- ProjectField
- ProjectFieldInfo
- ProjectInfo
- ProjectValue
- Reference
- ServerInfo
- StringFieldValue
- SubItem
- Tag
- TextFieldValue
- User
- UserGroup
- Version
- WorkItem
- YouTrack Form API
- YouTrack REST API
- Hub REST API

1. YouTrack Import Scripts
2. YouTrack Import API
3. [Comment](#0)

# Comment﻿

Last modified: 07 May 2026

Represents a comment entity.

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' | The type of the custom field. |
| 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. |

- [Comment](/help/youtrack/devportal/Import-Comment.html)
- [Properties](/help/youtrack/devportal/Import-Comment.html#properties)

[Build](jetbrains__com__help__youtrack__devportal__import-build.md)[DateFieldValue](jetbrains__com__help__youtrack__devportal__import-datefieldvalue.md)

- Privacy & Security
- Terms Of Use
- Trademarks
- Legal

Copyright © 2000–2026 JetBrains s.r.o.
