Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created April 28, 2020 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/490adcb84ab22fecb03627cd2d3f340e to your computer and use it in GitHub Desktop.
Save iaindooley/490adcb84ab22fecb03627cd2d3f340e to your computer and use it in GitHub Desktop.
Search cards labelled done
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