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
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.
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.