Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created September 24, 2021 05:52
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/f40f9fb431fc1109e1615dcf4e2fdadf to your computer and use it in GitHub Desktop.
Save iaindooley/f40f9fb431fc1109e1615dcf4e2fdadf to your computer and use it in GitHub Desktop.
updateChecklistItemDatesBasedOnDueDate
var card = new Notification(notification).addedDueDate();
copied.checklists().first().items().each(function(item)
{
var diff = item.due().getTime() - card.previouslyDue().getTime();
item.setDue(new Date(card.due()).addSeconds(diff));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment