We’re excited to tell you about a platform feature we’ve been working on, allowing apps to include richer information on comments in Asana.
To continue to make the Asana platform more accommodating for external content, we’ve developed a new field for comment stories on tasks. This new field in our API, named previews
, will allow app developers to post rich content and have it displayed in a more structured and consistent way while also making it easier to differentiate between app-generated and user-created content. The structure also allows various fields to link to the external content, making it easier for users to access the source.
We are currently trialing this new capability with two of our Asana-built integrations: Asana for Gmail and Asana for Slack. These integrations have the ability to attach emails or Slack messages as comments on a task. With the new rich previews, this content is rendered with more clarity compared to regular comments.
Here’s an example of how comments from our Gmail integration will look in the product and API with this new feature:
"previews": [
{
"fallback": "From: Jane Smith <janesmith@asana.com>\nHappy New Year!\n\nHello!\r\n\r\nIt's been a while and I'd love to reconnect. Let me know when you are free?\r\n\r\nBest,\r\nJane\r\n",
"footer": "January 9, 2019 4:56:21 PM PST",
"header": "Asana for Gmail",
"header_link": "https://asana.com/apps/google-gmail",
"html_text": "<body><strong>From: Jane Smith <<a href=\"mailto:janesmith@asana.com\">janesmith@asana.com</a>></strong>\n\nHello!\r\n\r\nIt's been a while and I'd love to reconnect. Let me know when you are free?\r\n\r\nBest,\r\nJane\r\n</body>",
"text": "From: Jane Smith <janesmith@asana.com>\n\nHello!\r\n\r\nIt's been a while and I'd love to reconnect. Let me know when you are free?\r\n\r\nBest,\r\nJane\r\n",
"title": "Happy New Year!",
"title_link": "https://mail.google.com/#search/abcd@mail.gmail.com"
}
]
This feature is experimental and we expect the format and capabilities to evolve and change based on your feedback. As such, the new previews
field will be read-only in the API while we collect input on use cases. You will be able to see the preview field populated if you retrieve any new stories posted by our Slack or Gmail integrations since 1/8.
The Asana Platform Team would love your feedback on this new feature and what you would like to see in future iterations. Specifically, we would love to hear how you’d hope to use it, so that our final implementation can be as flexible as our developers need.
If you have interest in using this field for your own app, please also fill out Rich content: developer beta screener and we’ll be in touch to learn more about your ideas!