Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created April 29, 2019 07:47
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/925c2cd65ad11931c2428bf0386d523e to your computer and use it in GitHub Desktop.
Save iaindooley/925c2cd65ad11931c2428bf0386d523e to your computer and use it in GitHub Desktop.
Delete list archive periodically
//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