With the recent change to allow for full card covers and colors I would like to setup a Butler rule or similar to where when a label on a card changes, the full card changes to match the label color. Is there a rule or automation available to allow this?
Something like:
when the green label is added to a card
add the green color to the card cover
Hello @brad.patera
Although Butler currently can't change a card's cover directly via an Action, you can do it indirectly using Butler's cool new HTTP requests Action to send a suitable PUT request to the Trello REST API to update the card and set the values you want for the cover.
To do this, create a Butler rule, add the Trigger you want, then add an Action of the type Content and the sub-type 'put to url with payload':
The url would be the REST API endpoint for cards, followed by the variable '{cardid}' that will be substituted by Butler with the ID of the referenced card. The url would be:
https://api.trello.com/1/cards/{cardid}
The payload would be the JSON formatted request that would contain your REST API key, token, and the values you want to set for the card's cover. For example, this payload would change the card's cover to green, full size:
{"key" : "[your_rest_key_here]","token" : "[your_rest_token_here]","cover" : {"color" : "green","size" : "full" }}
Here is an example of a rule with that Action described above being Triggered when a new card is created on the board:
Here is a closer look at the rule, showing the Action in more detail:
You can set the Trigger to be whatever or criteria you want. By altering the HTTP request's payload, you could set the card cover's color, size, text brightness etc.
WARNING!! This method puts your personal REST API key and token in plain text inside a Butler rule. Anyone who has the rights to read your rules would be able to see potentially sensitive credential information. Use with caution.
Following some of the guides and finally generating the tokens I was able to get this command working for my own use. Being very green to this entire area of API use and JSON formatting I have been struggling to use the same format for editing other aspects of a cover card.
How could I use this method to also change the "name" of the cover card?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @brad.patera
Welcome to the Community!
As the new features are really new, there aren't Butler rules for them yet.
@Blair at Atlassian posted a reply to a similar question here (the original question was about automating card covers), and his reply has all the details about how to make a feature request and the roadmaps that Trello have (with all the links to the boards and feature sites).
Hope that's helpful!
Esme :)
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.