Last active
November 9, 2019 01:29
-
-
Save iaindooley/7ba28b44ffe78a845631341a078ddfb6 to your computer and use it in GitHub Desktop.
Set main card date to earliest sub card date
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 setMainCardDateToEarliestSubCardDate(notification) | |
{ | |
var card = new Notification(notification).addedDueDate(); | |
var master = card.cardsLinkedInAttachments().first(); | |
if(!master.due() || (master.due() > card.due())) | |
{ | |
master.setDue(new Date(card.due())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment