Skip to content

Instantly share code, notes, and snippets.

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/55e20a0cb6d4de36d8f101183346cba6 to your computer and use it in GitHub Desktop.
Save iaindooley/55e20a0cb6d4de36d8f101183346cba6 to your computer and use it in GitHub Desktop.
setDueBasedOnCustomField
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