Last active
October 5, 2019 14:57
-
-
Save iaindooley/aa06c086b38360196764b927682fc241 to your computer and use it in GitHub Desktop.
Move incomplete checklist items
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 init() | |
{ | |
ExecutionQueue.push("moveIncompleteChecklistItems", | |
{id: new Trellinator().board("Your Board")}, | |
"initmoveIncompleteChecklistItems", | |
Trellinator.now().at("5:00")); | |
} | |
function moveIncompleteChecklistItems(board,signature,original_time) | |
{ | |
var todos = new Board(board).card("My ToDos"); | |
todos | |
.checklist(Trellinator.now().minusDays(1).dayName()) | |
.items() | |
.each(function(item) | |
{ | |
if(!item.isComplete()) | |
{ | |
todos.addChecklist(Trellinator.now().dayName(),function(cl) | |
{ | |
cl.addItem(item.name()); | |
}); | |
item.remove(); | |
} | |
}); | |
ExecutionQueue.push("moveIncompleteChecklistItems",board,signature,original_time.addDays(1).at("5:00")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment