Created
February 23, 2021 02:23
-
-
Save iaindooley/00f60cf86f76d5ab5448ab91ad074425 to your computer and use it in GitHub Desktop.
Copy a card and add 7 days for the 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
var cardlink = "SHORTLINK";//get this from the "share" button on the card | |
var card = new Card({link: cardlink}); | |
var target = card.currentList(); | |
var prev = card; | |
for(var i = 0;i < 52;i++) | |
{ | |
var prev = card.copyToList(target,card.name()).setDue(prev.due().addDays(7)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment