Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active March 1, 2021 22:16
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/8128c5431e2c2adb3a565ec0cc55f76e to your computer and use it in GitHub Desktop.
Save iaindooley/8128c5431e2c2adb3a565ec0cc55f76e to your computer and use it in GitHub Desktop.
Copy list to each 7 days
var board_name = "EDIT THIS";//put the name of your board
var list_name = "EDIT THIS";//put the name of the template list
var board = new Trellinator()
.board(board_name);
var template = board
.list(list_name);
var date = Trellinator.now();
for(var i = 0;i < 52;i++)
{
template.copy("bottom").setName(date.butlerDefaultDate()+" - "+new Date(date).addDays(7).butlerDefaultDate());
date.addDays(7);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment