Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active September 2, 2020 09:52
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/4d89712b214581ff7fac62f36d8cc1bb to your computer and use it in GitHub Desktop.
Save iaindooley/4d89712b214581ff7fac62f36d8cc1bb to your computer and use it in GitHub Desktop.
Copy all boards and cards to a new team
var source_team = new Trellinator().team("Old Team");
var target_team = new Trellinator().team("New Team");
source_team.boards().each(function(board)
{
var copy = board.copy(board.name(),target_team);
copy.members().each(function(member)
{
copy.removeMember(member);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment