Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active June 25, 2019 08:45
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/47eaca1314cc09deaf47bb6708bb6082 to your computer and use it in GitHub Desktop.
Save iaindooley/47eaca1314cc09deaf47bb6708bb6082 to your computer and use it in GitHub Desktop.
Unarchive all cards
function unarchiveAllCards()
{
var search = TrelloApi.searchCardsInBoards(new Trellinator().board("Our Project Board"),"is:archived");
while(search.first())
{
search.cards().each(function(card)
{
card.unArchive();
});
search = TrelloApi.searchCardsInBoards(new Trellinator().board("Our Project Board"),"is:archived")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment