Trello Label + Discord Role Integration

Hello Eric, and welcome to the Make community!

I have checked the Trello integration and apparently, you could use the webhook trigger “Watch activities / Update Card”. It’s not ideal since it triggers the scenario each time the cards are modified, but it does work for Label changes.

When your scenario is triggered, you get all information about the Card, including the Ids of the label; you can use this information to filter out the changes that are not related to Label.

Here is an example:

In this screenshot, you can see that there is a data.card.idlabels array, as well as a Data.Old.idLabels array. The second is important, since “Old” gives the element that was changed (and that triggered the scenario).

image
In this second example, I changed “description”. Hence, we see that we have Data.Old.desc instead of Data.Old.idLabels.

It means that you can filter and keep only the events when Data.Old.idLabels exists.


In your scenario, you can add a filter to say “Only go when Data.Old.idLabels exists”.


Your scenario would look like this.

Another option is to use a Scheduled scenario, to search all cards that have been modified since the last time your scenario ran, and then check the labels to see if they are different from the roles in discord, but it’s not the simplest way.

Note that you will get the ID of the labels, so you may need to use “Trello/List Labels” or to use a switch function to map IDs with Role names in Discord.

Let me know if you are stuck anywhere.

Best regards

2 Likes