Custom fields
Asana keys custom field writes by GID — task create and task update take
--custom-field <gid>=<value> and --custom-fields-json '{"<gid>":"<value>"}'. This group
is how you find those GIDs without leaving the CLI.
It is read-only. Defining or editing fields is workspace administration and is not wrapped — see API coverage.
Commands
Section titled “Commands”cyber-asana custom-field listcyber-asana custom-field get <gid>| Command | Arguments | Options |
|---|---|---|
list |
— | --workspace-gid <gid> / --workspace <gid>, pagination |
get |
<gid> |
— |
list requests gid,name,resource_subtype by default. The subtype is the part that matters
when you go to write: it tells you whether the value you send is text, a number, or an enum
option GID.
NAME TYPE ID-------- ------ ----------Priority enum 1201234567Estimate number 1201234568Enum options
Section titled “Enum options”Enum options are nested inside the field, so get covers option discovery:
cyber-asana custom-field get 1201234567Name PriorityID 1201234567Type enum
OPTION ID ENABLED------ ---------- -------High 1209876543 yesMedium 1209876544 yesLow 1209876545 yesSetting a value
Section titled “Setting a value”Feed the GIDs straight into a task write:
# enum — the value is the option GIDcyber-asana task update <task-gid> --custom-field 1201234567=1209876543
# number or text — the value is literalcyber-asana task update <task-gid> --custom-field 1201234568=5See Tasks for the full set of write options.