---
ai:
  exclude: true
search:
  tags:
    - issue
    - POST
seo:
  description: >-
    Adds a new comment to an issue. Reference for the POST
    /api/2/issue/{issueIdOrKey}/comment endpoint in the Jira Software Data
    Center REST API Reference.
sidebar:
  label: Add a comment
  badge: POST
title: Add a comment
type: openapi-operation
---
Adds a new comment to an issue.

`POST /api/2/issue/{issueIdOrKey}/comment`

**Request body** (`application/json`)

Comment create request

- `author` (UserJsonBean)
- `body` (string)
- `created` (string)
- `id` (string)
- `properties` (EntityPropertyBean[])
- `renderedBody` (string)
- `self` (string)
- `updateAuthor` (UserJsonBean)
- `updated` (string)
- `visibility` (VisibilityJsonBean)

Request body example:

```json
{
  "author": {
    "active": true,
    "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
    "displayName": "Fred F. User",
    "emailAddress": "fred@example.com",
    "key": "fred",
    "name": "Fred",
    "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
    "timeZone": "Australia/Sydney"
  },
  "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
  "created": "2012-07-06T18:30:00.000+0000",
  "id": "10000",
  "properties": [
    {
      "key": "issue.support",
      "value": "{\"hipchat.room.id\":\"support-123\",\"support.time\":\"1m\"}"
    }
  ],
  "renderedBody": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
  "self": "http://www.example.com/jira/rest/api/2/issue/10010/comment/10000",
  "updateAuthor": {
    "active": true,
    "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
    "displayName": "Fred F. User",
    "emailAddress": "fred@example.com",
    "key": "fred",
    "name": "Fred",
    "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
    "timeZone": "Australia/Sydney"
  },
  "updated": "2012-07-06T18:30:00.000+0000",
  "visibility": {
    "type": "group",
    "value": "jira-software-users"
  }
}
```

**Responses**

- `201` — Returned if add was successful.
- `400` — Returned if the input is invalid (e.g. missing required fields, invalid values, and so forth).

Response example, 201:

```json
{
  "author": {
    "active": true,
    "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
    "displayName": "Fred F. User",
    "emailAddress": "fred@example.com",
    "key": "fred",
    "name": "Fred",
    "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
    "timeZone": "Australia/Sydney"
  },
  "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
  "created": "2012-07-06T18:30:00.000+0000",
  "id": "10000",
  "properties": [
    {
      "key": "issue.support",
      "value": "{\"hipchat.room.id\":\"support-123\",\"support.time\":\"1m\"}"
    }
  ],
  "renderedBody": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
  "self": "http://www.example.com/jira/rest/api/2/issue/10010/comment/10000",
  "updateAuthor": {
    "active": true,
    "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
    "displayName": "Fred F. User",
    "emailAddress": "fred@example.com",
    "key": "fred",
    "name": "Fred",
    "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
    "timeZone": "Australia/Sydney"
  },
  "updated": "2012-07-06T18:30:00.000+0000",
  "visibility": {
    "type": "group",
    "value": "jira-software-users"
  }
}
```
