Create Task Story
asana_create_task_storyAdd a comment to an Asana task using plain text or formatted HTML. Specify the task ID to create a story entry with details like author and timestamp.
Instructions
Add a comment to a task. Provide either text (plain text) or html_text (formatted). If both are given, html_text is used and text is ignored. Returns the created story object including gid, text, created_at, created_by.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Plain-text content of the comment. Use this for simple comments without formatting. | |
| task_id | Yes | The GID of the task to comment on (numeric string, e.g. `'19234567890123'`). | |
| html_text | No | HTML-formatted comment. Root element must be `<body>`. Allowed tags: `<h1>`, `<h2>`, `<ol>`, `<ul>`, `<li>`, `<strong>`, `<em>`, `<u>`, `<s>`, `<code>`, `<pre>`, `<blockquote>`, `<a data-asana-type="" data-asana-gid="">`, `<hr>`, `<img>`, `<table>`, `<tr>`, `<td>`. No other tags. Use `\n` for line breaks, not after `<body>`. | |
| opt_fields | No | Comma-separated extra fields to include. Useful values: `gid,text,html_text,type,created_at,created_by.name`. |