Summary
Asana recently released ID custom fields as a way for users to uniquely identify tasks both within and outside of Asana, which is especially useful for ticketing apps.
More details about custom IDs:
- ID custom fields can be added to any project and will automatically generate incremental IDs for both existing and new tasks.
- ID custom field values are immutable and unique to the entire domain
- Projects and tasks can have more than one ID custom field
- Users will be able to find a task using a ID custom value
- Allowing users to retrieve a specific task by this shorter and more memorable identifier
- The custom field API has also been extended to return the ID custom fields and their values similar to how other custom fields are returned
- For the initial API release, we will not allow users to create an ID field or modify the prefix of an existing field via the API
Usage
Here’s an example of fetching the custom fields for a task in a project that has a custom ID field:
GET /tasks/<task-gid>?opt_fields=custom_fields
Returns:
{
"data": {
"gid": "1206585912264092",
"custom_fields": [
{
"gid": "1206627874171841",
"enabled": true,
"name": "BIZ",
"description": "Custom id for business ticketing system",
"created_by": {
"gid": "180015866142448",
"name": "Max Powers",
"resource_type": "user"
},
"display_value": "BIZ-76",
"resource_subtype": "text",
"resource_type": "custom_field",
"text_value": "BIZ-76",
"is_formula_field": false,
"is_value_read_only": true,
"type": "text"
}
]
}
}
Who is affected
This new field affects apps fetching custom fields via the API. If you have programmed defensively to account for new custom field types, as we recommend in the docs, there will be no impact since existing responses have not been modified.
Timeline
ID custom fields are live in Asana and reads are live in the API. Based on developer feedback, we may add additional API features in the future.
Questions & feedback
Custom IDs empower developers to build ticketing apps and integrate with other ticketing solutions. We’re excited to hear your feedback and answer any questions you may have.
Happy coding!