Hi Trello Community,
We have created a webhook for a board following the documentation in https://developer.atlassian.com/cloud/trello/guides/rest-api/webhooks/#webhook-actions-and-types.
Everything worked fine except that our callbackURL is now bombarded with all the updates happen at the board and cards within the board. While we understand that we may be able to filter out unnecessary action types within the external application itself but this is not ideal. It would be best if we can eliminate it from the source itself (Trello).
Is it possible to limit the action types for the webhooks to be triggered from Trello itself?
If you Webhook receiver is written in .Net then the TrelloDotNet nuget package can make the events easier to manage and filter: https://github.com/rwjdk/TrelloDotNet/wiki/Automation-Engine-vs-WebHook-Data-Receiver-Comparison
That’s the natural of webhook. The way to handle this is to filter it at the endpoint to only what is needed. idModel using board id will be triggered by any activity on the board. You should be able to use list or card but this will depend on your requirements. So have only idModel and filtering as a way to control what gets process. It is not event driven.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @milynnus
thanks for the response.
We want to expand Trello as a task/project management tool to deliver services for our clients. Our idea is to use a board to manage and track the services to be delivered. The board will have multiple lists with each list represents a status of the card.
A card in this board represents a service with a checklist to complete. The creation of the card is to be triggered by our CRM.
When a status changed, an attachment is added or a custom field is updated for a card, we would like to send updates to external application to process and subsequently update our customers.
That’s why we were thinking of using a board id as the model as creating a webhook for each card id as model does not seem ideal. Using a list as the model id does not seem to fulfil our requirements as well if each list represents a status.
Do you have any advice on what would be ideal model id or even board structure for our requirements?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I wrote a MirrorSync that automatically register a webhook when a copy of the card is created. It then allows me synchronised the changes for the pair of cards. The part that is not working well is on comments but the rest of the changes of the cards including attachments. custom field changes works well. It was quite a huge undertaking.
You can probably do the same. The details need to be studied. An open question is the nature of the updates you like to share because if it is the attachment you need to create and endpoint to retrieve the attachment into a download url. Again doable stuff just more work....I did it in my tacomailx project where I was able to set template email where I can include images. There is probably yet another approach.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.