Created
January 17, 2019 22:11
-
-
Save iaindooley/8f68c95b744792ec59494be08552c7ff to your computer and use it in GitHub Desktop.
Alert before due
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 scheduleAlertBeforeDue(notification,signature) | |
{ | |
new Notification(notification).actionOnDueDateAdded("actionAlertBeforeDue",signature,function(date) | |
{ | |
date.minusDays(7); | |
}); | |
} | |
function actionAlertBeforeDue(notification) | |
{ | |
//If you have a Google Sheet mapping username to slack DM handle you could post | |
//to the Slack API instead | |
new Notification(notification).card().postComment("@card due in 1 week!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment