A ticket is a piece of work in a Command teamspace, a release, or both. Behind it is an Asana task with the Command ticket custom type.
CommandTicket
| 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 ticket. |
short_id | string | Human-readable ID made of the teamspace's ticket prefix and a number. null when the ticket has no teamspace. |
description | string | The ticket's description as plain text. |
html_description | string | The ticket's description with formatting as HTML. See rich text. |
workspace | object | The workspace the ticket belongs to, which is the workspace of its teamspace and releases. |
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. |
teamspace | object | The teamspace the ticket belongs to. null when the ticket is only in releases. |
teamspace.gid | string | Globally unique identifier of the resource, as a string. |
teamspace.resource_type | string | The base type of this resource. |
teamspace.name | string | The name of the teamspace. |
teamspace.is_archived | boolean | Read-only. True if the teamspace is archived, false if not. |
type | string | The ticket's type. Click to show all enum values
|
size | string | Opt In. The ticket's size, or null when the ticket has no size. Click to show all enum values
|
work_stage | object | The ticket's work stage, one of its teamspace's work stages. null when the ticket has no teamspace. |
work_stage.gid | string | Globally unique identifier of the resource, as a string. |
work_stage.resource_type | string | The base type of this resource. |
work_stage.name | string | The name of the work stage. |
work_stage.category | string | The category of the work stage. Click to show all enum values
|
is_completed | boolean | true when the ticket's work stage is in the completed or canceled category. |
completed_at | string (date-time) | The time at which the ticket was completed, or null if it isn't completed. |
assignee | object | The user the ticket 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. |
labels[] | [object] | Opt In. The ticket's labels, from its teamspace's labels. Empty for a ticket without a teamspace. Set them on create with labels in the request body, and change them later with /labels/add and /labels/remove. |
labels[].gid | string | Globally unique identifier of the resource, as a string. |
labels[].resource_type | string | The base type of this resource. |
labels[].name | string | The name of the label. |
labels[].color | string | The color of the label. Defaults to none. |
releases[] | [object] | The releases the ticket belongs to. |
releases[].gid | string | Globally unique identifier of the resource, as a string. |
releases[].resource_type | string | The base type of this resource. |
releases[].name | string | The name of the release. |
dependencies[] | [object] | Opt In. What this ticket waits on: Command tickets from any teamspace, Command to-dos and regular tasks, told apart by resource_type. Only items the user has access to are included. Change them with /tasks/{task_gid}/addDependencies and /tasks/{task_gid}/removeDependencies. |
dependencies[].gid | string | Globally unique identifier of the resource, as a string. |
dependencies[].resource_type | string | The base type of this resource. |
dependencies[].name | string | The name of the ticket. |
dependencies[].short_id | string | Human-readable ID made of the teamspace's ticket prefix and a number. null when the ticket has no teamspace. |
dependencies[].resource_subtype | string | The subtype of this resource. Different subtypes retain many of the same fields and behavior, but may render differently in Asana or represent resources with different semantic meaning. The resource_subtype milestone represent a single moment in time. This means tasks with this subtype cannot have a start_date. Click to show all enum values
|
dependencies[].created_by | object | Opt In. A user object represents an account in Asana that can be given access to various workspaces, projects, and tasks. |
dependencies[].created_by.gid | string | Globally unique identifier of the resource. |
dependencies[].created_by.resource_type | string | The type of resource. |
dependents[] | [object] | Opt In. What waits on this ticket: Command tickets from any teamspace, Command to-dos and regular tasks, told apart by resource_type. Only items the user has access to are included. Change them with /tasks/{task_gid}/addDependents and /tasks/{task_gid}/removeDependents. |
dependents[].gid | string | Globally unique identifier of the resource, as a string. |
dependents[].resource_type | string | The base type of this resource. |
dependents[].name | string | The name of the ticket. |
dependents[].short_id | string | Human-readable ID made of the teamspace's ticket prefix and a number. null when the ticket has no teamspace. |
dependents[].resource_subtype | string | The subtype of this resource. Different subtypes retain many of the same fields and behavior, but may render differently in Asana or represent resources with different semantic meaning. The resource_subtype milestone represent a single moment in time. This means tasks with this subtype cannot have a start_date. Click to show all enum values
|
dependents[].created_by | object | Opt In. A user object represents an account in Asana that can be given access to various workspaces, projects, and tasks. |
dependents[].created_by.gid | string | Globally unique identifier of the resource. |
dependents[].created_by.resource_type | string | The type of resource. |
todos[] | [object] | The ticket's to-dos, in the order the ticket shows them. |
todos[].gid | string | Globally unique identifier of the resource, as a string. |
todos[].resource_type | string | The base type of this resource. |
todos[].name | string | The name of the to-do. |
delegated_coding_agents[] | [object] | Opt In. Coding agents the ticket or one of its to-dos 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. |
coding_agent_sessions[] | [object] | Opt In. Coding agent sessions started on the ticket or one of its to-dos that aren't archived, newest first. |
coding_agent_sessions[].gid | string | Globally unique identifier of the resource, as a string. |
coding_agent_sessions[].resource_type | string | The base type of this resource. |
coding_agent_sessions[].status | string | The status of the session. Click to show all enum values
|
code_changes[] | [object] | Opt In. Pull requests and merge requests linked to the ticket by a code hosting integration. A pull request linked to several tickets appears on each of them. |
code_changes[].gid | string | Globally unique identifier of the resource, as a string. |
code_changes[].resource_type | string | The base type of this resource. |
code_changes[].provider | string | The code hosting integration the code change comes from. New integrations add values, so accept unknown ones. Click to show all enum values
|
code_changes[].number | integer | The number of the code change in its repository. |
code_changes[].title | string | The title of the code change. |
code_changes[].url | string | A link to the code change on the code hosting site. |
code_changes[].state | string | The state of the code change. Click to show all enum values
|
code_changes[].repository | object | The repository the code change belongs to. |
code_changes[].repository.name | string | The name of the repository. |
code_changes[].repository.url | string | A link to the repository. |
code_changes[].author | object | The account that opened the code change, or null when it isn't known. |
code_changes[].author.username | string | The author's username on the code hosting site. |
code_changes[].coding_agent_session | object | The coding agent session that opened the code change, or null when no coding agent session opened it. |
code_changes[].coding_agent_session.gid | string | Globally unique identifier of the resource, as a string. |
code_changes[].coding_agent_session.resource_type | string | The base type of this resource. |
code_changes[].coding_agent_session.status | string | The status of the session. Click to show all enum values
|
code_changes[].created_at | string (date-time) | The time at which the code change was opened on the code hosting site. |
code_changes[].merged_at | string (date-time) | The time at which the code change was merged, or null if it isn't merged. |
created_at | string (date-time) | The time at which the ticket was created. |
modified_at | string (date-time) | The time at which the ticket was last changed. |
permalink_url | string | A url that points directly to the ticket in Command. null when the ticket has no teamspace. |
predicted_start_on | string (date) | Opt In. The day Command's forecast expects work on the ticket to start, or null when there's no forecast. |
predicted_completion_on | string (date) | Opt In. The day Command's forecast expects the ticket to be completed, or null when there's no forecast. |
Example JSON for CommandTicket:
{
"gid": "12345",
"resource_type": "command_ticket",
"name": "Add the to-do endpoints",
"short_id": "CODE-42",
"description": "Return the full ticket object.",
"html_description": "<body>Return the full ticket object.</body>",
"workspace": {
"gid": "12345",
"resource_type": "workspace",
"name": "My Company Workspace"
},
"teamspace": {
"gid": "12345",
"resource_type": "command_teamspace",
"name": "Platform",
"is_archived": false
},
"type": "feature",
"size": "m",
"work_stage": {
"gid": "12345",
"resource_type": "command_work_stage",
"name": "In review",
"category": "in_progress"
},
"is_completed": false,
"completed_at": "2012-02-22T02:06:58.147Z",
"assignee": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"labels": [
{
"gid": "12345",
"resource_type": "command_label",
"name": "Bug bash",
"color": "blue"
}
],
"releases": [
{
"gid": "12345",
"resource_type": "command_release",
"name": "Command API v1"
}
],
"dependencies": [
{
"gid": "12345",
"resource_type": "command_ticket",
"name": "Add the to-do endpoints",
"short_id": "CODE-42"
}
],
"dependents": [
{
"gid": "12345",
"resource_type": "command_ticket",
"name": "Add the to-do endpoints",
"short_id": "CODE-42"
}
],
"todos": [
{
"gid": "12345",
"resource_type": "command_todo",
"name": "Write the tests"
}
],
"delegated_coding_agents": [
{
"gid": "12345",
"resource_type": "command_coding_agent",
"name": "Cursor"
}
],
"coding_agent_sessions": [
{
"gid": "12345",
"resource_type": "command_coding_agent_session",
"status": "active"
}
],
"code_changes": [
{
"gid": "12345",
"resource_type": "command_code_change",
"provider": "github",
"number": 42,
"title": "Add code_changes to the ticket object",
"url": "https://github.com/octo-org/octo-repo/pull/42",
"state": "open",
"repository": {
"name": "octo-repo",
"url": "https://github.com/octo-org/octo-repo"
},
"author": {
"username": "octocat"
},
"coding_agent_session": {
"gid": "12345",
"resource_type": "command_coding_agent_session",
"status": "active"
},
"created_at": "2012-02-22T02:06:58.147Z",
"merged_at": "2012-02-22T02:06:58.147Z"
}
],
"created_at": "2012-02-22T02:06:58.147Z",
"modified_at": "2012-02-22T02:06:58.147Z",
"permalink_url": "https://app.asana.com/1/12345/dev/space/67890/ticket/321654",
"predicted_start_on": "2026-11-02",
"predicted_completion_on": "2026-11-13"
}