Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active July 16, 2021 00:38
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/0a3aaf1182dc422e8c9fbc4128d9ca77 to your computer and use it in GitHub Desktop.
Save iaindooley/0a3aaf1182dc422e8c9fbc4128d9ca77 to your computer and use it in GitHub Desktop.
moveArchivedCards
var target = new Trellinator().board("Archive Board");
TrelloApi.searchCardsInBoards(
new Trellinator().board("From Board"),
"is:archived"
//comment out the below line to run for more than one card
,1
).each(function(card)
{
card
.moveToList(target.findOrCreateList(card.currentList().name()),"top")
.unArchive();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment