Allocations - Exporting and Webhook

We are very excited with the release of Capacity Plan and think it is going to be a great addition. I have a few questions though.

  • Is there a way of connecting and getting the data from a single capacity play? I.e. feeding it to power bi

  • Is there a way of tracking allocation changes, i.e. creating a webhook on the resource_type of Allocations? as I have tried and there does not seem to be that type of resource_type? The reason why is a I am looking at syncing the allocations with an external system so they stay in Sync.

Any assistance on this would be greatly appreciated.

Hi @Mitch_Hare - allocations have recently been added to the API. I don’t think you can pull it from a single capacity plan, per se (since allocations are global), but you can pull by user, project, and org. I believe you can also set this up in webhooks, but I haven’t tried personally.

Thanks Stephen, any idea what the webhook filter would be? As I have tried
filtering by project but it doesn’t trigger the webhook when the allocation is changed. It does not recognize a resource type of “allocations”. Do you think I might have to create at the workspace level and then do it based on user changes and then in my own code filter on the ones that relate to allocation changes?
{
“resource”: webhook_project_gid,
“target”: url,
“filters”: [
{
‘resource_type’: ‘project’,
‘action’: ‘changed’
}

Just to confirm, you tried "resource_type": "allocation", not allocations, right? I think it should work when listening on a project (the allocation’s parent is the project, I believe), but you could try listening for your whole workspace. That might honestly be a better policy anyway so you don’t have to go in and re-configure as you add future projects.

If that still doesn’t work, try responding in this announcement thread:

Yes to confirm I used “resource_type”: “allocation” not allocations I get this error
asana.error.InvalidRequestError: Invalid Request: 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: allocation

Yes my aim was to listen to the workspace and when a project gets added create a new webhook for that project to listen for the allocations but can’t get webhook for the allocations on a project to work so I will reply to the thread you have copied. Thanks

1 Like

Ah, seems like they haven’t added allocations to events/webhooks yet. Hopefully one of the Asana team will be able to advise on timing in that thread.

1 Like

I checked and confirmed that we don’t have events / webhooks yet. Thanks for sharing the interest. I passed that on. I don’t have a timeline for that webhook support.

4 Likes

Is there any update on webhooks for allocations?

Related to my previous question about webhooks, are Allocations exposed via the Fivetran connector?