Created
April 28, 2020 15:48
-
-
Save iaindooley/490adcb84ab22fecb03627cd2d3f340e to your computer and use it in GitHub Desktop.
Search cards labelled done
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
function searchCardsLabelledDone(notification) | |
{ | |
var cards = TrelloApi.searchCardsInBoards(new Trellinator().board("My Board"),"is:archived label:\"Done\") | |
.find(function(card) | |
{ | |
if(card.whenCreated().getYear() == "2019") | |
return card; | |
else | |
return false; | |
}); | |
Logger.log("Found: "+cards.length()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment