Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created February 23, 2021 02:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/00f60cf86f76d5ab5448ab91ad074425 to your computer and use it in GitHub Desktop.
Save iaindooley/00f60cf86f76d5ab5448ab91ad074425 to your computer and use it in GitHub Desktop.
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