Hi,
I’m using webhooks to get task updates in asana and have some custom fields which are part of the trigger for webhooks and based on webhook data received updating values back at asana through APIs.
But the issue I’m facing is that my webhooks are triggered when I’m updating certain fields which are part of custom fields in Tasks but we don’t want them to trigger webhooks on updating certain fields in custom fields of tasks.
Any help would be appreciated
1 Like
Hi,
@Phil_Seeman will be able to help. In the mean time, I believe the philosophy with web hooks is to send a lot of things, assuming you will be filtering on your side…
1 Like
Yes,
We are filtering webhook requests but custom fields are part of filter for webhooks and we are updating values of custom fields after processing webhooks in our application but in updating values once we update the custom fields webhooks again are triggered and this process goes on so my main query is that whether it is possible to restrict webhook event changes for custom fields for tasks or can we add specific custom field name as filter for webhooks?
Definitely not, that’s not supported.
I haven’t tried to filter on “only changes to custom fields” - I think it’s supposed to be possible… I know others have tried but I’m not sure if anyone has been successful. @Frederic_Malenfant do you know any more about whether one can filter a webhook on only “custom fields” changes?
Sorry I can’t help, we are not using webhooks in our app.
Maybe we should, to get data faster specially when the asana api becomes very slow with several seconds wait time!!
But I can’t help on that question.
Hi Everyone,
I have a process which is being trigger on approving or unapproving an approval task. we have used Asana Webhooks to integrate Asana with the portal where it would trigger the process.
My question is that I only want my process to trigger when the approval task is approved and not when it is unapproved.
can we add a certain filter that would help us achieve this.
Hi @Rajnish and welcome to the forum,
No, afraid this is not possible - you can’t filter webhooks only to specific values of a property. You’ll have to do the filtering on your end (which I imagine is what you’re doing now).
Currently we are filtering using below mentioned filters.
“filters”: [
{
“fields”: [
“approval_status”
],
“resource_type”: “task”,
“action”: “changed”,
“resource_subtype”: “approval”
}
]
but is there any additional filter we can add that only focus on the approval of a task and omit or ignore unapproved.
No - see my initial answer above.