Created
September 24, 2021 05:52
-
-
Save iaindooley/f40f9fb431fc1109e1615dcf4e2fdadf to your computer and use it in GitHub Desktop.
updateChecklistItemDatesBasedOnDueDate
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
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