Summary
Time tracking entries are now available in the API! This feature allows you to estimate the time needed to complete a task, as well as record the actual time spent. This data helps inform decisions regarding workload and resourcing, provides better information for real-time estimates on project progress, and can inform forecasting and budgeting.
Usage
To perform operations on time tracking entries, you can make requests to the following API endpoints:
Here’s an example of a complete time tracking entry record in the API:
{
"gid": "12345",
"resource_type": "task",
"created_by": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"duration_minutes": 12,
"entered_on": "2015-03-14",
"created_at": "2012-02-22T02:06:58.147Z",
"task": {
"gid": "12345",
"resource_type": "task",
"name": "Bug Task",
"resource_subtype": "default_task"
}
}
For property descriptions, you can review the schema for time tracking entries.
Special considerations
The following webhooks are emitted when a time tracking entry is added, changed, or deleted:
- A webhook for the
task
is emitted forfield: 'actual_time_minutes'
- A webhook for the
time tracking entry
is emitted - After a short time (i.e., to allow for an “undo”), a story is emitted (e.g.,
Carolyn added 45m to actual time
)
Questions & feedback
We hope that by using these new endpoints, you can integrate Asana’s time tracking capabilities with the other tools and workflows you use to track time.
As always, feel free to leave your questions, comments, and feedback here in the forum!
Best,
Andrew