---
title: Jira issue comments
description: Perform operations like get, create, update, and delete on Jira issue comments via the Jira REST API.
category: Application
tags: [jira, comments, issue, devops, integration]
---

# Jira issue comments

## Description

The **Jira Issue Comments** activity allows you to interact with comments associated with issues in a Jira Cloud project. You can retrieve, create, update, or delete comments on a specific issue by providing the issue key and necessary parameters.

This activity is useful in DevOps pipelines or project management workflows where tracking discussions, developer notes, or status updates via comments is essential. You can automate documentation, QA sign-off, stakeholder notes, or even audit trail generation directly from Jira issues.

Supported operations:

- **Get** – Retrieve a specific comment from a Jira issue using its ID.
- **Get All** – Retrieve all comments associated with a Jira issue.
- **Create** – Add a new comment to a specified Jira issue.
- **Update** – Modify an existing comment using its comment ID.
- **Delete** – Remove a comment from a Jira issue.

> **Use Case Example**:
> When a build fails in CI/CD, you can create an automated comment in the relevant Jira issue explaining the error using the "Create" operation. Later, a "Get All" operation can be used to fetch all developer discussions for compliance or review.

---

## Input

- **Data** – Required only for `Create` or `Update` operations if additional data is needed (such as author metadata, context, etc.)

---

## Output

| Output Type | Format | Description                                               |
| ----------- | ------ | --------------------------------------------------------- |
| **Data**    | JSON   | Retrieved or modified comment records from the Jira issue |

---

## Configuration Fields

| Field Name     | Description                                                                               | Required |
| -------------- | ----------------------------------------------------------------------------------------- | -------- |
| **Connection** | Jira OAuth connection for accessing the API.                                              | Yes      |
| **Site Name**  | Jira site URL (e.g., `your-domain.atlassian.net`).                                        | Yes      |
| **Cloud ID**   | Unique cloud instance identifier from Jira (used for API scoping).                        | Yes      |
| **Operation**  | Action to perform: <br>`Get`, `Get All`, `Create`, `Update`, `Delete`.                    | Yes      |
| **Issue Key**  | Key of the Jira issue (e.g., `PROJ-123`) to interact with.                                | Yes      |
| **Comment ID** | ID of the comment. Required for `Get`, `Update`, or `Delete` operations.                  | Optional |
| **Comments**   | The comment text to be created or updated. Required for `Create` and `Update` operations. | Optional |

---

## Sample Input

| Field     | Value                                        |
| --------- | -------------------------------------------- |
| Issue Key | `DEV-456`                                    |
| Comment   | `Please validate the fix for the login bug.` |
| Operation | `Create`                                     |

---

## Sample Configuration

| Field      | Value                      |
| ---------- | -------------------------- |
| Connection | Jira OAuth Connection      |
| Site Name  | `myteam.atlassian.net`     |
| Cloud ID   | `1234abcd5678efgh`         |
| Operation  | `Create`                   |
| Issue Key  | `DEV-456`                  |
| Comments   | `Please validate the fix.` |

---

## Sample Output

| Field       | Description                                     |
| ----------- | ----------------------------------------------- |
| `id`        | ID of the comment created or fetched            |
| `author`    | Name and ID of the user who created the comment |
| `body`      | The full comment content                        |
| `created`   | Timestamp of comment creation                   |
| `updated`   | Timestamp of last update                        |
| `jsdPublic` | Whether the comment is public (for JSD)         |
| `self`      | API URL to retrieve this comment                |

```json
[
  {
    "id": "10001",
    "body": "Please validate the fix.",
    "author": {
      "displayName": "Jane Developer",
      "accountId": "abc123"
    },
    "created": "2024-05-03T10:25:00.000Z",
    "updated": "2024-05-03T10:25:00.000Z",
    "jsdPublic": false,
    "self": "https://myteam.atlassian.net/rest/api/3/issue/DEV-456/comment/10001"
  }
]
```
