Last active
July 16, 2021 00:38
-
-
Save iaindooley/0a3aaf1182dc422e8c9fbc4128d9ca77 to your computer and use it in GitHub Desktop.
moveArchivedCards
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
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