Time tracking entries
Get a time tracking entry
<b>Required scope: </b><code>time_tracking_entries:read</code>
<table> <tr> <th>Field</th> <th>Required Scope</th> </tr> <tr> <td><code>categories</code></td> <td><code>time_tracking_categories:read</code></td> </tr> </table>Returns the complete time tracking entry record for a single time tracking entry.
get/time_tracking_entries/{time_tracking_entry_gid}
Request
- Base URL: https://app.asana.com/api/1.0
- URL: https://app.asana.com/api/1.0/time_tracking_entries/{time_tracking_entry_gid}
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.asana.com/-/oauth_authorize, token URL https://app.asana.com/-/oauth_token, scopes: time_tracking_entries:read)
Query parameters
opt_fieldsstring[]
This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include. Properties can include nested fields. To learn more, see the input/output options guide.
Response
Successfully retrieved the requested time tracking entry.
Example response
{
"data": {
"gid": "12345",
"resource_type": "time_tracking_entry",
"duration_minutes": 12,
"entered_on": "2015-03-14",
"attributable_to": {
"gid": "12345",
"resource_type": "project",
"name": "Stuff to buy",
"resource_subtype": "default_project"
},
"assignee": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"created_by": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"categories": [
{
"gid": "12345",
"resource_type": "time_tracking_category",
"name": "Development",
"color": "blue"
}
],
"task": {
"gid": "12345",
"resource_type": "task",
"name": "Bug Task",
"resource_subtype": "default_task",
"created_by": {
"gid": "1111",
"resource_type": "user"
}
},
"created_at": "2012-02-22T02:06:58.147Z",
"approval_status": "DRAFT",
"billable_status": "billable",
"description": "My description of work done on this entry"
}
}Changes
No operation changes recorded.