---
schema: rendered-html/v1
title: "Operations with Specific IssueComment | Developer Portal for YouTrack and Hub Documentation"
source_url: https://www.jetbrains.com/help/youtrack/devportal/operations-api-issues-issueID-comments.html
generated_at: 2026-06-11T15:06:55.298066+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
- YouTrack Form API
- YouTrack REST API
- Get Started with REST API
- REST API Reference
- Entities
- Resources
- Activity Items
- Issue Activities Page
- Build Bundles
- Enum Bundles
- Owned Bundles
- State Bundles
- User Bundles
- Version Bundles
- Custom Fields
- Field Types
- Backup Files
- Database Backup Settings
- Global Settings
- Organizations
- Projects
- Telemetry data
- Global Time Tracking Settings
- Agiles
- Articles
- Assigned Roles
- Commands
- Command Suggestions
- User Groups
- Issue Link Types
- Issue Tag
- Issues
- Operations with Specific Issue
- Sub-resources
- Issue Activity Items
- Activity Cursor Page
- Issue Attachments
- Issue Comments
- [Operations with Specific IssueComment](operations-api-issues-issueID-comments.html)
- Sub-resources
- Issue Custom Fields
- Issue Links
- Issue Project
- Issue Sprints
- Tags
- Issue Time Tracking
- Issue VCS Changes and Pull Requests
- Issue Count
- Permissions
- Roles
- Saved Queries
- Search Suggestions
- Tags
- Users
- My User Profile
- Issue Work Items
- REST API Use Cases
- REST API Troubleshooting
- Color Indices List
- Hub REST API

1. YouTrack REST API
2. REST API Reference
3. Resources
4. Issues
5. [Sub-resources](#0)
6. Issue Comments
7. [Operations with Specific IssueComment](#0)

# Operations with Specific IssueComment﻿

Last modified: 23 May 2025

This resource lets you work with comments of an issue.

| Resource | ``` /api/issues/{issueID}/comments/{commentID} ``` |
| --- | --- |
| Returned entity | IssueComment. For the description of the entity attributes, see [Supported Fields](/help/youtrack/devportal/operations-api-issues-issueID-comments.html#IssueComment-supported-fields) section. |
| Supported methods | - `GET`: [Read a Specific IssueComment](/help/youtrack/devportal/operations-api-issues-issueID-comments.html#get-IssueComment-method). - `POST`: [Update a Specific IssueComment](/help/youtrack/devportal/operations-api-issues-issueID-comments.html#update-IssueComment-method). - `DELETE`: [Delete a Specific IssueComment](/help/youtrack/devportal/operations-api-issues-issueID-comments.html#delete-IssueComment-method). |

## IssueComment attributes﻿

Represents an existing issue comment.

### Related Resources﻿

Below you can find the list of resources that let you work with this entity.

- Issue Comments

### Attributes﻿

This table describes attributes of the `IssueComment` entity.


| --- | --- | --- |
| id | String | The ID of the vote for the duplicate issue. `Read-only`. |
| attachments | Array of IssueAttachments | The list of attachments that are attached to the comment. |
| author | User | The user who created the comment. `Read-only`. `Can be null`. |
| created | Long | The timestamp in milliseconds indicating the moment the comment was posted. Stored as a unix timestamp at UTC. `Read-only`. |
| deleted | Boolean | When `true`, the comment is considered to be deleted, otherwise false. |
| issue | Issue | The issue the comment belongs to. `Read-only`. `Can be null`. |
| pinned | Boolean | Determines whether the comment is pinned in the issue. |
| reactions | Array of Reactions | The list of reactions that users added to this comment. |
| text | String | The text of the comment. `Can be null`. |
| textPreview | String | The comment text as it is shown in UI after processing with wiki/markdown (including HTML markup). `Read-only`. |
| updated | Long | The timestamp in milliseconds indicating the last update of the comment. Stored as a unix timestamp at UTC. `Read-only`. `Can be null`. |
| visibility | Visibility | Visibility settings of the comment. They define who is allowed to see the comment. `Can be null`. |

## Read a Specific IssueComment﻿

Read a comment with a specific ID.

### Required permissions﻿

Requires read access to the issue. If a user is the comment author, the comment is always visible.

### Request syntax﻿

GET /api/issues/{issueID}/comments/{commentID}?{fields}

| {commentID} | Database ID of the comment. |
| --- | --- |

### Request parameters﻿

| Parameter | Type | Description |
| --- | --- | --- |
| fields | String | A list of IssueComment attributes that should be returned in the response. If no field is specified, only the `entityID` is returned. |

### Sample﻿

#### Sample request﻿

https://example.youtrack.cloud/api/issues/2-33/comments/4-17?fields=id,created,author(name,id),text

#### Sample response body﻿

{
  "author": {
    "name": "John Doe",
    "id": "1-2",
    "$type": "User"
  },
  "created": 1569502774166,
  "text": "Uh, Houston, we've definitely had a problem.",
  "id": "4-17",
  "$type": "IssueComment"
}

## Update a Specific IssueComment﻿

Update an existing comment of the specific issue.

### Required permissions﻿

Requires Update Comment permission for own comments and Update Not Own Comment permission for not own comments.

### Request syntax﻿

POST /api/issues/{issueID}/comments/{commentID}?{fields}&{muteUpdateNotifications}

| {commentID} | Database ID of the comment. |
| --- | --- |

### Request parameters﻿

| Parameter | Type | Description |
| --- | --- | --- |
| fields | String | A list of IssueComment attributes that should be returned in the response. If no field is specified, only the `entityID` is returned. |
| muteUpdateNotifications | Boolean | Set this parameter to `true` if no notifications should be sent on changes made by this request. This doesn't mute notifications sent by any workflow rules. Using this parameter requires Apply Commands Silently permission in all projects affected by the request. Available since 2021.3. |

### Sample 1﻿

#### Sample request﻿

https://example.youtrack.cloud/api/issues/2-31/comments/4-2/?fields=id,author(login,name,id),deleted,text,updated,visibility(permittedGroups(name,id),permittedUsers(id,name,login))

#### Sample request body﻿

{
                    "text": "okay, let's do it, @jane.doe. By the way, I'm updating this comment using REST.",
                    "visibility": {
                        "permittedGroups":[{"id":"3-2"}],
                        "$type": "LimitedVisibility"
                    }
                    }

#### Sample response body﻿

{
                    "deleted": false,
                    "author": {
                        "login": "john.doe",
                        "name": "John Doe",
                        "id": "1-2"
                    },
                    "visibility": {
                        "permittedUsers": [],
                        "permittedGroups": [
                            {
                                "name": "Sample Project Team",
                                "id": "3-2"
                            }
                        ],
                        "$type": "LimitedVisibility"
                    },
                    "text": "okay, let's do it, @jane.doe. By the way, I'm updating this comment using REST.",
                    "updated": 1535542466727,
                    "id": "4-2"
                }

### Sample 2﻿

Let's update the `deleted` attribute of a comment to remove this comment from the issue temporarily. This means that the comment can be restored later if necessary. To delete a comment permanently, use the [DELETE request](https://www.jetbrains.com/help/youtrack/devportal/operations-api-issues-issueID-comments.html#delete-IssueComment-method).

#### Sample request﻿

https://example.youtrack.cloud/api/issues/2-31/comments/4-2/?fields=id,text,deleted

#### Sample request body﻿

{
  "deleted": true
}

#### Sample response body﻿

{
  "deleted": true,
  "text": "@Jane.Doe, please take care of this task",
  "id": "4-2",
  "$type": "IssueComment"
}

## Delete a Specific IssueComment﻿

Delete an existing comment of the specific issue. This request deletes a comment from the database completely. You can also remove a comment from an issue temporarily by updating the comment. For details, check the [request sample](https://www.jetbrains.com/help/youtrack/devportal/operations-api-issues-issueID-comments.html#update-IssueComment-method-sample-2).

### Required permissions﻿

Requires Delete Comment permission for own comments and Delete Not Own Comment permission for not own comments.

### Request syntax﻿

DELETE /api/issues/{issueID}/comments/{commentID}

| {commentID} | Database ID of the comment. |
| --- | --- |

### Request parameters﻿

| Parameter | Type | Description |
| --- | --- | --- |
| fields | String | A list of IssueComment attributes that should be returned in the response. If no field is specified, only the `entityID` is returned. |

### Sample﻿

#### Sample request﻿

https://example.youtrack.cloud/api/issues/2-7/comments/4-5

- [Operations with Specific IssueComment](/help/youtrack/devportal/operations-api-issues-issueID-comments.html)
- [IssueComment attributes](/help/youtrack/devportal/operations-api-issues-issueID-comments.html#IssueComment-supported-fields)
- [Read a Specific IssueComment](/help/youtrack/devportal/operations-api-issues-issueID-comments.html#get-IssueComment-method)
- [Update a Specific IssueComment](/help/youtrack/devportal/operations-api-issues-issueID-comments.html#update-IssueComment-method)
- [Delete a Specific IssueComment](/help/youtrack/devportal/operations-api-issues-issueID-comments.html#delete-IssueComment-method)

Issue CommentsReactions

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

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

![](https://bat.bing.com/action/0?ti=5220035&tm=gtm002&Ver=2&mid=1691eedf-d6aa-4f26-86de-db35e0cca86f&bo=4&sid=452929b065a111f19a7fe7356f74a419&vid=aa3122f0648711f1a10d6d095e10fd87&vids=0&msclkid=N&pi=918639831&lg=en-US&sw=1920&sh=1080&sc=24&tl=Operations%20with%20Specific%20IssueComment%20%7C%20Developer%20Portal%20for%20YouTrack%20and%20Hub%20Documentation&p=https%3A%2F%2Fwww.jetbrains.com%2Fhelp%2Fyoutrack%2Fdevportal%2Foperations-api-issues-issueID-comments.html&r=&lt=1170&pt=1781190412208,39,39,,,1,1,1,1,1,,2,34,35,46,381,381,381,1169,1170,1170&pn=0,0&evt=pageLoad&sv=2&asc=G&cdb=AQAS&rn=168538)
