Created
December 1, 2018 02:55
-
-
Save iaindooley/81eb6df83908ac0c10b9d07f807826ee to your computer and use it in GitHub Desktop.
Delete all archived cards
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
function deleteAllArchivedCards(notification) | |
{ | |
var card = new Notification(notification).addedCard(); | |
if(card.name() == "Clear archived cards") | |
{ | |
TrelloApi.searchCardsInBoards(card.board(),"is:archived").each(function(card) | |
{ | |
Logger.log(card); | |
card.del(); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment