Created
July 8, 2021 00:10
-
-
Save iaindooley/b5c1ed951eaa0749b267418d04934136 to your computer and use it in GitHub Desktop.
populateDescriptionWithCardCoverUrls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////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