Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created April 26, 2019 05:12
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/05801e7db706e53d0d6148e4ae9a73e7 to your computer and use it in GitHub Desktop.
Save iaindooley/05801e7db706e53d0d6148e4ae9a73e7 to your computer and use it in GitHub Desktop.
Create new card due in 1 year
function createNewCardDueInOneYear(notification)
{
var card = new Notification(notification).movedCard("Completed");
Card.create(card.board().findOrCreateList("New Tasks"),
card.name())
.setDue(card.customFieldValue("Completed").addWeeks(52));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment