Created
April 26, 2019 05:12
-
-
Save iaindooley/05801e7db706e53d0d6148e4ae9a73e7 to your computer and use it in GitHub Desktop.
Create new card due in 1 year
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 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