The Update comment action updates the text and associated properties of an Asana comment and returns the new values of the fields in response data.

Overview

The Update comment action returns the updated comment properties for the comment such as story GID of the comment, comment text, and pin status. The action updates the pin status of both text and attachment comments. The action also converts an existing plain-text comment to a rich-text HTML format.

Settings

The following settings are available in the Update comment action:

Session
The Asana session that the Connect action creates. 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 Asana session variable that holds the session name.
Story GID
The globally unique identifier (GID) of the Asana comment to update.
Comment
The updated text for the comment in the task. Choose one of the following options for updating the text:
  • Text: Enter the comment in plain-text format. You can also define a string variable with the comment text and select it using Insert a value option.
  • HTML Text: Enter the comment text in HTML format. Ensure that the HTML tags are formatted correctly.
Pin comment (optional)
The toggle pins the comment to the top of the comment thread. Choose one of the following:
  • True: Select to pin the comment to the top.
  • False: Select to leave the comment unpinned.
  • Variable: Select to insert a boolean variable whose default value determines whether to pin the comment or not.
Assign response to a variable (Optional)
The output variable stores the response data after the action updates the existing comment. The action returns the following response data:
  • storyGid - The unique GID of the comment.
  • text - The updated comment text as specified in Comment.
  • is_pinned - The updated pin status of the comment as specified in Pin 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.