Created
May 31, 2021 09:35
-
-
Save iaindooley/55e20a0cb6d4de36d8f101183346cba6 to your computer and use it in GitHub Desktop.
setDueBasedOnCustomField
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 datefieldname = "My Date Field";//update to the name of your actual field | |
var target_list = "My List";//update to the name of your actual list | |
////DON'T EDIT BELOW THIS LINE//// | |
var changed = new Notification(notification).changedCustomField(); | |
if(changed.name() == datefieldname) | |
{ | |
Card.create( | |
changed.card().board().list(target_list), | |
changed.card().name() | |
).setDue(changed.value()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment