Get comments
- Updated: 2026/04/24
The Get comments action retrieves all the comments in the specified Jira issue.
Overview
The Get comments action retrieves comments available in the specified Jira issue and returns the ID and body text of all the comments. The comment ID and text can be used in various downstream actions within the automation session.
Settings
- Session
- The Jira session that the
Connect action creates. The session name is used
as the authentication context for the operation. Choose one of the following
options as per the Connect action settings:
- Session name: Select the string variable that stores the session name or enter the session name manually in the text box.
- Variable: Select the Jira session variable that holds the session name.
- Issue key
- The Jira issue from which the comments must be retrieved. For example, PROJ-123
- Max results (optional)
- The number of comments to retrieve. Ensure that you enter a positive integer. If this field is left blank, the action retrieves the first 50 comments of the issue.
- Assign output to variable
- The output variable stores the response data after the action retrieves the
comments from the issue. The action returns the following response data:
commentId- The ID of the comment.commentBody- The body text of the comment.
Use one of the following options to store the response data:
- Multiple variables: Create and specify
individual variables to store specific response data.
Use the Add variable mapping option to specify the key and corresponding variable type to store the specific response data.
- Dictionary: Create and specify a dictionary variable to store the entire response data.