Hi @anon6878416, we don’t have that information available in a resource’s parameter with our current time tracking API. However, the workaround you could take is to look up the details of the story event created from modifying the time field to get that information. For example, let’s say you established a webhook like the one above so:
- Establish a webhook (POST /webhooks)
{
"data": {
"filters": [
{
"action": "added",
"resource_type": "story",
"resource_subtype": "time_tracking_entry_added"
},
{
"action": "added",
"resource_type": "story",
"resource_subtype": "time_tracking_entry_changed"
},
{
"action": "added",
"resource_type": "story",
"resource_subtype": "time_tracking_entry_removed"
}
],
"resource": "<PROJECT_GID_OR_TASK_GID>",
"target": "<TARGET_URL>"
}
}
- In Asana add a time in the time tracking field. Wait for story event to be sent to your webhook target URL. It should look something like this:
[
{
user: { gid: '<USER_GID>', resource_type: 'user' },
created_at: '2023-03-24T17:12:33.099Z',
action: 'added',
parent: {
gid: '<TASK_GID>',
resource_type: 'task',
resource_subtype: 'default_task'
},
resource: {
gid: '<STORY_GID>',
resource_type: 'story',
resource_subtype: 'time_tracking_entry_added'
}
}
]
- Look up the
<STORY_GID>
using our Get a story (GET /stories/{story_gid}) endpoint and get the information you need. The response should look something like the following:
{
"data": {
"gid": "<STORY_GID>",
"created_at": "2023-03-24T17:07:37.694Z",
"created_by": {
"gid": "<USER_GID>",
"name": "<USER_NAME>",
"resource_type": "user"
},
"previews": [],
"resource_type": "story",
"source": "web",
"text": "<USER_NAME> added 3h 00m to actual time",
"type": "system",
"resource_subtype": "time_tracking_entry_added",
"target": {
"gid": "<TASK_GID>",
"name": "test",
"resource_type": "task",
"resource_subtype": "default_task"
}
}
}
Here you can see that the time tracking was added at 2023-03-24T17:07:37.694Z
and the user that added it in the created_by
object. I realize this isn’t ideal but for now if you want that information this is one workaround I can think of.