Update comment 操作 in Jira 软件包

Automation 360

更新评论操作会更新指定 Jira 问题中的评论。

概览

更新评论操作会替换 Jira 问题中指定评论的正文,并返回更新后的文本。 目前,仅支持纯文本格式。 如果现有评论中附有文件,响应文本将显示文件名及扩展名。

注: Ensure that you add and configure the Connect action before proceeding with configuring the Update comment action, as the Connect action provides the authentication context for the automation session.

设置

会话名称
指定连接操作创建的 Jira 会话。 会话名称用作该操作的身份验证上下文。 根据连接操作设置选择以下选项之一:
  • 会话名称: 选择存储会话名称的字符串变量,或在文本框中手动输入会话名称。
  • 变量: 选择包含会话名称的 Jira 会话变量。
问题密钥
指定操作从中检索评论的 Jira 问题的键。
评论 ID
Specifies the ID of the comment that the action updates.
评论正文
Specifies the new body text of the comment.
将输出分配给变量
Specifies the output variable to store the response data after the action updates the comment in the issue. Some of the keys available in response data are as follows:
  • id- The unique identifier of the comment.
  • body- The body text of the comment.

使用以下选项之一来存储响应数据:

  • 多个变量: 创建并指定单独的变量以存储特定的响应数据。

    使用添加变量映射选项来指定键和值对应的变量类型,以存储特定的响应数据。

  • 字典: 创建并指定一个字典变量以存储完整的响应数据。