One of the webhooks stopped working without any errors.
I just don’t get any requests anymore. Tried to recreate it, didn’t help.
Also I noticed an odd behavior. I successfully created webhook for one project, but get error with the same configuration for another project.
“resource”: {project_id},
“filters”: [
{
“action”: “added”,
“resource_subtype”: “tag”,
“resource_type”: “task”
}
],
"target": "target"
Response
asana.error.InvalidRequestError: Invalid Request: The resource_subtype tag is invalid for the given task resource_type
But yesterday I’ve create 5 web hooks for different projects with this configuration.
Yes, I’m trying to watch tags added to task. And now my filter looks like this {'resource_type': 'tag', 'resource_subtype': None, 'action': 'added', 'fields': None}
I checked it by getting webhook by gid.
And I still don’t get any requests to my webhook handler.
I also checked that handler works with direct request
I spoke incorrectly before when I thought it would be “tag” for resource type. Turns out your adding the task to the tag, rather than the tag being added to the task.
Within your webhook handler, you’d need to check if parent.resource_type == “tag”. Without this extra filtering, you’ll also see new tasks being added to the project and existing tasks be added to other projects.