asana_create_task
Create new tasks in Asana projects with names, descriptions, due dates, assignees, and custom fields to organize work and track progress.
Instructions
Create a new task in a project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project to create the task in | |
| name | Yes | Name of the task | |
| notes | No | Description of the task | |
| 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 \n to create a newline. Do not use \n after <body>. Example: <body><h1>Motivation</h1> A customer called in to complain <h1>Goal</h1> Fix the problem</body> | |
| due_on | No | Due date in YYYY-MM-DD format | |
| assignee | No | Assignee (can be 'me' or a user ID) | |
| followers | No | Array of user IDs to add as followers | |
| parent | No | The parent task ID to set this task under | |
| projects | No | Array of project IDs to add this task to | |
| resource_subtype | No | The type of the task. Can be one of 'default_task' or 'milestone' | |
| custom_fields | No | Object mapping custom field GID strings to their values. For enum fields use the enum option GID as the value. |
Input Schema (JSON Schema)
{
"properties": {
"assignee": {
"description": "Assignee (can be 'me' or a user ID)",
"type": "string"
},
"custom_fields": {
"description": "Object mapping custom field GID strings to their values. For enum fields use the enum option GID as the value.",
"type": "object"
},
"due_on": {
"description": "Due date in YYYY-MM-DD format",
"type": "string"
},
"followers": {
"description": "Array of user IDs to add as followers",
"items": {
"type": "string"
},
"type": "array"
},
"html_notes": {
"description": "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 \\n to create a newline. Do not use \\n after <body>. Example: <body><h1>Motivation</h1>\nA customer called in to complain\n<h1>Goal</h1>\nFix the problem</body>",
"type": "string"
},
"name": {
"description": "Name of the task",
"type": "string"
},
"notes": {
"description": "Description of the task",
"type": "string"
},
"parent": {
"description": "The parent task ID to set this task under",
"type": "string"
},
"project_id": {
"description": "The project to create the task in",
"type": "string"
},
"projects": {
"description": "Array of project IDs to add this task to",
"items": {
"type": "string"
},
"type": "array"
},
"resource_subtype": {
"description": "The type of the task. Can be one of 'default_task' or 'milestone'",
"type": "string"
}
},
"required": [
"project_id",
"name"
],
"type": "object"
}