Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Move archived cards
var source_board_name = "ADD THE NAME HERE";
var target_board_name = "ADD THE NAME HERE";
////////////////////////
//don't edit below here
////////////////////////
var trell = new Trellinator();
var target_board = trell.board(target_board_name);
TrelloApi.searchCardsInBoards(trell.board(source_board_name),"is:archived edited:day").each(function(card)
{
card.moveToList(target_board.findOrCreateList(card.currentList().name()),"top");
console.log("Moved: "+card.link());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment