Created
November 10, 2018 03:01
-
-
Save iaindooley/949a12ba85d42af059215da3f5c55336 to your computer and use it in GitHub Desktop.
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 backupBoard(notification) | |
{ | |
var notif = new Notification(notification); | |
notif.addedLabel("Trigger Backup"); | |
var new_board = Board.create(notif.board().name()+" "+Trellinator.now().toLocaleString()+" backup"); | |
notif.board().lists().each(function(list) | |
{ | |
list.copy().move(new_board); | |
}); | |
Card.create(Board.findOrCreate("Board Backups").findOrCreateList(Trellinator.now().monthName()),Trellinator.now().toLocaleString()) | |
.attachLink(new_board.link()); | |
new_board.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment