Created
April 29, 2019 07:47
-
-
Save iaindooley/925c2cd65ad11931c2428bf0386d523e to your computer and use it in GitHub Desktop.
Delete list archive periodically
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
//INSTALL THIS FOR THE CLIENT'S MAIN BOARD | |
function moveArchivedList(notification) | |
{ | |
var list = new Notification(notification).archivedList(); | |
list.move(Board.findOrCreate(list.board().name()+" ARCHIVE")).unArchive(); | |
} | |
//RUN THIS ONCE FROM THE SCRIPT EDITOR AND THEN IT WILL RE-EXECUTE EVERY 30 DAYS | |
function periodicallyDeleteArchiveBoards() | |
{ | |
new Trellinator().boards(/.*ARCHIVE/).each(function(board) | |
{ | |
board.del(); | |
}); | |
ExecutionQueue.push("periodicallyDeleteArchiveBoards",{},"manual-periodicallyDeleteArchiveBoards",Trellinator.now().addDays(30)); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment