Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Copy a card and add 7 days for the year
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