Skip to content

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 TypeFormatDescription
DataJSONRetrieved or modified comment records from the Jira issue

Configuration Fields

Field NameDescriptionRequired
ConnectionJira OAuth connection for accessing the API.Yes
Site NameJira site URL (e.g., your-domain.atlassian.net).Yes
Cloud IDUnique cloud instance identifier from Jira (used for API scoping).Yes
OperationAction to perform:
Get, Get All, Create, Update, Delete.
Yes
Issue KeyKey of the Jira issue (e.g., PROJ-123) to interact with.Yes
Comment IDID of the comment. Required for Get, Update, or Delete operations.Optional
CommentsThe comment text to be created or updated. Required for Create and Update operations.Optional

Sample Input

FieldValue
Issue KeyDEV-456
CommentPlease validate the fix for the login bug.
OperationCreate

Sample Configuration

FieldValue
ConnectionJira OAuth Connection
Site Namemyteam.atlassian.net
Cloud ID1234abcd5678efgh
OperationCreate
Issue KeyDEV-456
CommentsPlease validate the fix.

Sample Output

FieldDescription
idID of the comment created or fetched
authorName and ID of the user who created the comment
bodyThe full comment content
createdTimestamp of comment creation
updatedTimestamp of last update
jsdPublicWhether the comment is public (for JSD)
selfAPI URL to retrieve this comment
[
{
"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"
}
]