Hey @Alexander_Weißgerber and @Phil_Seeman ,
I don’t happen to know off the top of my head. I’d need to investigate or test it out. Are you saying that you don’t get these events when subscribing to a task?
Hey @Alexander_Weißgerber and @Phil_Seeman ,
I don’t happen to know off the top of my head. I’d need to investigate or test it out. Are you saying that you don’t get these events when subscribing to a task?
Hello @John_Baldo,
thank you for your reply.
I
t’s not that I am not getting the events, the problem is different:
We use an external application to track our times and generate client invoices based on working hours of single tasks. Within this external application we create a new project and this causes in Asana the creation of a new project based on a template. That works well.
The next step is the creation of tasks. This will happen manually and means when a user creates a task we need to establish the “time_tracking_entry” webhooks.
I am able to create webhooks based on tasks and even those for a story to get notified about time tracking entries however the stories doesn’t help because of useless information. They do not include the real amount of tracked time but story-text.
And here comes the moment where we have to establish “time_tracking_entry” webhooks for newly created tasks and as it is written in the opening post this should be possible since April 2023.
The question is now: How to establish a webhook for a “time_tracking_entry” when this does not work?
array_push($aFilters, [
"action" => "added",
"resource_type" => "time_tracking_entry",
]);
array_push($aFilters, [
"action" => "changed",
"resource_type" => "time_tracking_entry",
]);
array_push($aFilters, [
"action" => "deleted",
"resource_type" => "time_tracking_entry",
]);
$aWebhookData = [
"filters" => $aFilters,
"resource" => $task_gid,
"target" => $webhook_url,
];
$result = $client->webhooks->createWebhook($aWebhookData, ['opt_pretty' => 'true']);
Hello @John_Baldo , I’d kindly ask if there are any news on the topic of webhook establishing for time tracking entries?
Hello, any update on this topic?
I try to register a webhook, and for time_tracking_entry
as resource_type
, I get this error:
filters: [0]: resource_type: Must be one of {attachment, column_recipe, conversation, custom_field, custom_field_setting, enum_option, goal, job, portfolio, portfolio_membership, project, project_membership, project_membership_recipe, project_recipe, project_status, project_template, project_template_configuration_membership, section, story, tag, task, team, team_membership, template_task_recipe, user, webhook, workspace, workspace_membership}, not: time_tracking_entry
Thank you.
The resource type needs to be task with the subtype being time_tracking_entries:
{
"data": {
"resource": project_id,
"target": webhook_url,
"filters": [
{
"resource_type": "task",
"resouce_subtype":"time_tracking_entries"
}
]
}
}