Command Tickets

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

PropertyTypeDescription
gidstringGlobally unique identifier of the resource, as a string.
resource_typestringThe base type of this resource.
namestringThe name of the ticket.
short_idstringHuman-readable ID made of the teamspace's ticket prefix and a number. null when the ticket has no teamspace.
descriptionstringThe ticket's description as plain text.
html_descriptionstringThe ticket's description with formatting as HTML. See rich text.
workspaceobjectThe workspace the ticket belongs to, which is the workspace of its teamspace and releases.
workspace.gidstringGlobally unique identifier of the resource, as a string.
workspace.resource_typestringThe base type of this resource.
workspace.namestringThe name of the workspace.
teamspaceobjectThe teamspace the ticket belongs to. null when the ticket is only in releases.
teamspace.gidstringGlobally unique identifier of the resource, as a string.
teamspace.resource_typestringThe base type of this resource.
teamspace.namestringThe name of the teamspace.
teamspace.is_archivedbooleanRead-only. True if the teamspace is archived, false if not.
typestringThe ticket's type.
Click to show all enum values
  • bug
  • chore
  • feature
sizestringOpt In. The ticket's size, or null when the ticket has no size.
Click to show all enum values
  • l
  • m
  • s
  • xl
work_stageobjectThe ticket's work stage, one of its teamspace's work stages. null when the ticket has no teamspace.
work_stage.gidstringGlobally unique identifier of the resource, as a string.
work_stage.resource_typestringThe base type of this resource.
work_stage.namestringThe name of the work stage.
work_stage.categorystringThe category of the work stage.
Click to show all enum values
  • canceled
  • completed
  • in_progress
  • not_started
  • unplanned
is_completedbooleantrue when the ticket's work stage is in the completed or canceled category.
completed_atstring (date-time)The time at which the ticket was completed, or null if it isn't completed.
assigneeobjectThe user the ticket is assigned to.
assignee.gidstringGlobally unique identifier of the resource, as a string.
assignee.resource_typestringThe base type of this resource.
assignee.namestringRead-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[].gidstringGlobally unique identifier of the resource, as a string.
labels[].resource_typestringThe base type of this resource.
labels[].namestringThe name of the label.
labels[].colorstringThe color of the label. Defaults to none.
releases[][object]The releases the ticket belongs to.
releases[].gidstringGlobally unique identifier of the resource, as a string.
releases[].resource_typestringThe base type of this resource.
releases[].namestringThe 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[].gidstringGlobally unique identifier of the resource, as a string.
dependencies[].resource_typestringThe base type of this resource.
dependencies[].namestringThe name of the ticket.
dependencies[].short_idstringHuman-readable ID made of the teamspace's ticket prefix and a number. null when the ticket has no teamspace.
dependencies[].resource_subtypestringThe 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
  • approval
  • custom
  • default_task
  • milestone
dependencies[].created_byobjectOpt In. A user object represents an account in Asana that can be given access to various workspaces, projects, and tasks.
dependencies[].created_by.gidstringGlobally unique identifier of the resource.
dependencies[].created_by.resource_typestringThe 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[].gidstringGlobally unique identifier of the resource, as a string.
dependents[].resource_typestringThe base type of this resource.
dependents[].namestringThe name of the ticket.
dependents[].short_idstringHuman-readable ID made of the teamspace's ticket prefix and a number. null when the ticket has no teamspace.
dependents[].resource_subtypestringThe 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
  • approval
  • custom
  • default_task
  • milestone
dependents[].created_byobjectOpt In. A user object represents an account in Asana that can be given access to various workspaces, projects, and tasks.
dependents[].created_by.gidstringGlobally unique identifier of the resource.
dependents[].created_by.resource_typestringThe type of resource.
todos[][object]The ticket's to-dos, in the order the ticket shows them.
todos[].gidstringGlobally unique identifier of the resource, as a string.
todos[].resource_typestringThe base type of this resource.
todos[].namestringThe 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[].gidstringGlobally unique identifier of the resource, as a string.
delegated_coding_agents[].resource_typestringThe base type of this resource.
delegated_coding_agents[].namestringThe 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[].gidstringGlobally unique identifier of the resource, as a string.
coding_agent_sessions[].resource_typestringThe base type of this resource.
coding_agent_sessions[].statusstringThe status of the session.
Click to show all enum values
  • active
  • completed
  • failed
  • launching
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[].gidstringGlobally unique identifier of the resource, as a string.
code_changes[].resource_typestringThe base type of this resource.
code_changes[].providerstringThe code hosting integration the code change comes from. New integrations add values, so accept unknown ones.
Click to show all enum values
  • github
  • gitlab
code_changes[].numberintegerThe number of the code change in its repository.
code_changes[].titlestringThe title of the code change.
code_changes[].urlstringA link to the code change on the code hosting site.
code_changes[].statestringThe state of the code change.
Click to show all enum values
  • closed
  • draft
  • merged
  • open
  • queued
code_changes[].repositoryobjectThe repository the code change belongs to.
code_changes[].repository.namestringThe name of the repository.
code_changes[].repository.urlstringA link to the repository.
code_changes[].authorobjectThe account that opened the code change, or null when it isn't known.
code_changes[].author.usernamestringThe author's username on the code hosting site.
code_changes[].coding_agent_sessionobjectThe coding agent session that opened the code change, or null when no coding agent session opened it.
code_changes[].coding_agent_session.gidstringGlobally unique identifier of the resource, as a string.
code_changes[].coding_agent_session.resource_typestringThe base type of this resource.
code_changes[].coding_agent_session.statusstringThe status of the session.
Click to show all enum values
  • active
  • completed
  • failed
  • launching
code_changes[].created_atstring (date-time)The time at which the code change was opened on the code hosting site.
code_changes[].merged_atstring (date-time)The time at which the code change was merged, or null if it isn't merged.
created_atstring (date-time)The time at which the ticket was created.
modified_atstring (date-time)The time at which the ticket was last changed.
permalink_urlstringA url that points directly to the ticket in Command. null when the ticket has no teamspace.
predicted_start_onstring (date)Opt In. The day Command's forecast expects work on the ticket to start, or null when there's no forecast.
predicted_completion_onstring (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"
}