Created
April 4, 2019 23:53
-
-
Save iaindooley/ded683c685d263cc5583afb341ce8e7c to your computer and use it in GitHub Desktop.
Email me if cards in To Do
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 emailMeDailyIfCardsInToDo(board,signature,original_time) | |
{ | |
var msg = []; | |
new Board(board).list("To Do").cards().each(function(card) | |
{ | |
msg.push(card.name()); | |
}); | |
if(msg.length) | |
{ | |
MailApp.sendEmail("youremail@example.com", | |
"Stuff to do "+original_time.butlerDefaultDate(), | |
"Here, here is some stuff to do:\n\n"+msg.join("\n")+"\n\n"); | |
} | |
ExecutionQueue.push("emailMeDailyIfCardsInToDo",board,signature,original_time.addHours(24)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment