mcp-server-asana

asana_create_task

Create a new task in a project

Input Schema

NameRequiredDescriptionDefault
assigneeNoAssignee (can be 'me' or a user ID)
custom_fieldsNoObject mapping custom field GID strings to their values. For enum fields use the enum option GID as the value.
due_onNoDue date in YYYY-MM-DD format
followersNoArray of user IDs to add as followers
html_notesNoHTML-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>
nameYesName of the task
notesNoDescription of the task
parentNoThe parent task ID to set this task under
project_idYesThe project to create the task in
projectsNoArray of project IDs to add this task to
resource_subtypeNoThe type of the task. Can be one of 'default_task' or 'milestone'

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" }