获取评论操作会检索指定 Jira 问题中的所有评论。
概览
获取评论操作会检索指定 Jira 问题中的可用评论,并返回所有评论的 ID 和正文内容。 You can use the comment ID and text in various downstream actions within the automation session.
注: 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.
设置
- 会话名称
- 指定连接操作创建的 Jira 会话。 会话名称用作该操作的身份验证上下文。 根据连接操作设置选择以下选项之一:
- 会话名称: 选择存储会话名称的字符串变量,或在文本框中手动输入会话名称。
- 变量: 选择包含会话名称的 Jira 会话变量。
- 问题密钥
- 指定操作从中检索评论的 Jira 问题的键。
- 最大结果数(可选)
- Specifies the maximum number of comments to retrieve. 如果此字段留空,操作将检索问题的前 50 条评论。
- 将输出分配给变量
- Specifies the output variable to store the response data after the action retrieves the comments from the issue. 该操作返回以下响应数据:
-
commentId- The unique identifier of the comment. -
commentBody- 评论的正文。
使用以下选项之一来存储响应数据:
-
多个变量: 创建并指定单独的变量以存储特定的响应数据。
使用添加变量映射选项来指定键和值对应的变量类型,以存储特定的响应数据。
- 字典: 创建并指定一个字典变量以存储完整的响应数据。
-