Guest User

Untitled

a guest
Jan 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. function scheduleAlertBeforeDue(notification,signature)
  2. {
  3. new Notification(notification).actionOnDueDateAdded("actionAlertBeforeDue",signature,function(date)
  4. {
  5. date.minusDays(7);
  6. });
  7. }
  8.  
  9. function actionAlertBeforeDue(notification)
  10. {
  11. //If you have a Google Sheet mapping username to slack DM handle you could post
  12. //to the Slack API instead
  13. new Notification(notification).card().postComment("@card due in 1 week!");
  14. }
Add Comment
Please, Sign In to add comment