Created
October 6, 2020 21:19
-
-
Save iaindooley/9cbd520fea27b28a9e643a026db69624 to your computer and use it in GitHub Desktop.
Backup board
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(params,sig,original_time) | |
{ | |
var all_backups = Board.findOrCreate("My Backups"); | |
var to_backup = new Board(params); | |
var backup_name = to_backup.name()+" "+Trellinator.now(); | |
Card.create( | |
all_backups.findOrCreateList(Trellinator.now().butlerDefaultDate()), | |
backup_name | |
).attachLink(to_backup.copy(backup_name).link()); | |
ExecutionQueue.push("backupBoard",params,sig,original_time.addDays(1)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment