How to Sync Comments in Asana

    How to Sync Comments in Asana

    This article describes how to synchronize comments between Asana and other systems.

    Comments in Asana: Asana stores comments as HTML content to support rich text formatting. This HTML needs proper handling during synchronization.

    Outgoing sync (Asana → Remote system)

    To send comments from Asana to the remote system, use this script in your Outgoing Sync:

    replica.comments = nodeHelper.stripHtmlFromComments(entity.comments)
    What this does: The stripHtmlFromComments helper removes HTML formatting from comments, making them compatible with systems that don't support rich text.

    Incoming sync (Remote system → Asana)

    To receive comments from the remote system and add them to Asana, use this script in your Incoming Sync:

    entity.comments = commentHelper.mergeComments(entity, replica)
    What this does: The mergeComments helper merges new comments with existing ones, avoiding duplicates while preserving comment history.

    More information

    Have more questions? Ask the community