Create Task
asana_create_taskCreate a new Asana task with details like name, notes, due date, and assignee. Use memberships to place it in a project section, and get the created task object.
Instructions
Create a new task. Use memberships to place it directly in a specific project section (preferred over project_id alone). Returns the created task object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the task | |
| notes | No | Description of the task | |
| due_on | No | Due date in YYYY-MM-DD format | |
| parent | No | The parent task ID to set this task under | |
| assignee | No | Assignee (can be 'me' or a user ID) | |
| projects | No | Array of project IDs to add this task to | |
| followers | No | Array of user IDs to add as followers | |
| html_notes | No | HTML-like formatted description of the task. Does not support ALL HTML tags. Only a subset. The only allowed TAG in the HTML are: <body> <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 are allowed. Use the to create a newline. Do not use after <body>. Example: <body><h1>Motivation</h1> A customer called in to complain <h1>Goal</h1> Fix the problem</body> | |
| project_id | Yes | The GID of the project to add the task to (numeric string). Alternative to using `memberships` — use `memberships` when you also want to specify a section. | |
| memberships | No | Array of project/section memberships. Each entry specifies a project and optionally a section within that project to add the task to. Example: [{"project": "123", "section": "456"}] | |
| custom_fields | No | Object mapping custom field GID strings to their values. For enum fields use the enum option GID as the value. | |
| resource_subtype | No | The type of the task. Can be one of 'default_task' or 'milestone' |