Created
March 30, 2020 02:20
-
-
Save iaindooley/b64807638bcd8ad07a10de865323735a to your computer and use it in GitHub Desktop.
Email overdue cards periodically
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 emailOverdueCardsPeriodically(params,signature,original_time) | |
{ | |
new Board(params).cards().each(function(card) | |
{ | |
if(new Date(card.due()) < Trellinator.now()) | |
{ | |
MailApp.send(card.customFieldValue("Email"),"Hi there!","Here is a message"); | |
} | |
}); | |
ExecutionQueue.push("emailOverdueCardsPeriodically",params,signature,original_time.addHours(1)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment