Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created March 19, 2019 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/e53deba3395ad930c02bc1af82761a9b to your computer and use it in GitHub Desktop.
Save iaindooley/e53deba3395ad930c02bc1af82761a9b to your computer and use it in GitHub Desktop.
Notify relative to due date
function scheduleNotifyRelativeToDueDate(notification,signature)
{
new Notification(notification).actionOnDueDateAdded("actionScheduleRelativeToDueDate",signature,function(date)
{
date.minusDays(3);
});
}
function actionScheduleRelativeToDueDate(notification)
{
new Notification(notification).replyToMember("You asked me to remind you about this");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment