Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
populateDescriptionWithCardCoverUrls
//////////NEED TO UPDATE THESE WITH ACTUAL CARD LINKS//////////
var card1 = new Card({link: "https://trello.com/c/qBNRQOgC"});
var card2 = new Card({link: "https://trello.com/c/agPXg93u"});
var target = new Card({link: "https://trello.com/c/spqW3beM"});
///////////////////////////////////////////////////////////////
var card1cover = TrelloApi.get("cards/"+card1.id()+"/attachments/"+card1.data.idAttachmentCover).url;
var card2cover = TrelloApi.get("cards/"+card2.id()+"/attachments/"+card2.data.idAttachmentCover).url;
target.setDescription(
"![Card 1 Cover]("+card1cover+")\n\n![Card 2 Cover]("+card2cover+")"
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment