Trigger webhooks only for limited list of action types

Priska Aprilia
Contributor
July 22, 2024

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?

2 answers

0 votes
Rasmus Wulff Jensen
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 22, 2024

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

0 votes
milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 22, 2024

@Priska Aprilia 

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. 

Priska Aprilia
Contributor
July 22, 2024

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?

milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 22, 2024

@Priska Aprilia 

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events