Get comments action in Jira package
- Updated: 2026/05/15
Get comments action in Jira package
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. You can use the comment ID and text in various downstream actions within the automation session.
Note: Ensure that you add and configure the
Connect action before proceeding with configuring the
Get comments action, as the
Connect action provides the authentication context for
the automation session.
Settings
- Session name
- Specifies the Jira session that the
Connect action creates. The session name serves
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
- Specifies the key of the Jira issue from which the action retrieves comments.
- Max results (optional)
- Specifies the maximum number of comments to retrieve. If this field is left blank, the action retrieves the first 50 comments of the issue.
- Assign output to variable
- Specifies the output variable to store the response data after the action retrieves the
comments from the issue. The action returns the following response data:
commentId- The unique identifier 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.