Created
July 24, 2020 05:13
-
-
Save iaindooley/ee8450469552a37b61cee48bcaae2088 to your computer and use it in GitHub Desktop.
Set number of dates from 2 dates
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 setDays(notification) | |
{ | |
var changed = new Notification(notification).changedCustomFieldValue(); | |
if(changed.name() == "End") | |
{ | |
var card = changed.card(); | |
var start = card.customFieldValue("Start"); | |
var end = card.customFieldValue("End"); | |
card.setCustomFieldValue("Days",(end-start)/1000/60/60/24); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment