My app’s listening to changes on cards using webhooks. For the new feature I need to get info about changes to checklists(create/update/delete checklists, create/update/delete check items).
The problem is that when something happens to checklist, webhook data doesn’t contain card data. Seems weird, especially that when there’s any change to check item, webhook data has card data included. I guess it would make sense if both sources sent card data in webhooks(and it would help me a lot :D)
Is there a chance for such change in webhooks api?
update on check item: webhooks sends info about card, board, checklist and checkitem objects under the “data” key
update on checklist: checklist and board info only
Can you elaborate on the differences here? Specifically, what data is missing that you expect to be included?
Here are two webhook payloads - one for addChecklistToCard (something happening to checklist) and one for updateCheckItemStateOnCard (something happening to a check item). They both appear to have the same data:
In general, we intentionally send the minimal amount of data necessary for looking up more specific information about the context of an action. Webhooks are intended to be used as a trigger for an integration to go and look up the specific data they need when an action occurs.
Thanks! You’re definitely correct that that action type doesn’t return any card data. I’ll certainly pass along the request to our team to add more, but, as I mentioned, we try to be as lean as possible in sending data related to the change and recommend making a follow-up API call to the checklists endpoint after you receive this action to gather additional information you may need.
In the meantime, if it is critical that you receive the card ID via the webhook, you could add the card ID as a query parameter to the callback URL when creating the webhook. Then, when you receive the webhook, you can parse the query parameters and know which card ID this checklist belongs to.