A to-do is a checklist item on a Command ticket. Behind it is an Asana subtask of the ticket with the Command to-do custom type.
CommandTodo
| Property | Type | Description |
|---|---|---|
gid | string | Globally unique identifier of the resource, as a string. |
resource_type | string | The base type of this resource. |
name | string | The name of the to-do. |
workspace | object | The workspace the to-do belongs to, which is its ticket's workspace. |
workspace.gid | string | Globally unique identifier of the resource, as a string. |
workspace.resource_type | string | The base type of this resource. |
workspace.name | string | The name of the workspace. |
ticket | object | The ticket the to-do belongs to. null when the to-do has no ticket you can see, for example because the ticket is in the trash. |
ticket.gid | string | Globally unique identifier of the resource, as a string. |
ticket.resource_type | string | The base type of this resource. |
ticket.name | string | The name of the ticket. |
ticket.short_id | string | Human-readable ID made of the teamspace's ticket prefix and a number. null when the ticket has no teamspace. |
assignee | object | The user the to-do is assigned to. |
assignee.gid | string | Globally unique identifier of the resource, as a string. |
assignee.resource_type | string | The base type of this resource. |
assignee.name | string | Read-only except when same user as requester. The user's name. |
is_completed | boolean | Whether the to-do is done. |
completed_at | string (date-time) | The time at which the to-do was completed, or null if it isn't completed. |
delegated_coding_agents[] | [object] | Opt In. Coding agents the to-do was delegated to, through a coding agent session that isn't archived. Each agent appears once. |
delegated_coding_agents[].gid | string | Globally unique identifier of the resource, as a string. |
delegated_coding_agents[].resource_type | string | The base type of this resource. |
delegated_coding_agents[].name | string | The display name of the coding agent. |
created_at | string (date-time) | The time at which the to-do was created. |
modified_at | string (date-time) | The time at which the to-do was last changed. |
Example JSON for CommandTodo:
{
"gid": "12345",
"resource_type": "command_todo",
"name": "Write the tests",
"workspace": {
"gid": "12345",
"resource_type": "workspace",
"name": "My Company Workspace"
},
"ticket": {
"gid": "12345",
"resource_type": "command_ticket",
"name": "Add the to-do endpoints",
"short_id": "CODE-42"
},
"assignee": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"is_completed": false,
"completed_at": "2012-02-22T02:06:58.147Z",
"delegated_coding_agents": [
{
"gid": "12345",
"resource_type": "command_coding_agent",
"name": "Cursor"
}
],
"created_at": "2012-02-22T02:06:58.147Z",
"modified_at": "2012-02-22T02:06:58.147Z"
}