Last active
September 2, 2020 09:52
-
-
Save iaindooley/4d89712b214581ff7fac62f36d8cc1bb to your computer and use it in GitHub Desktop.
Copy all boards and cards to a new team
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 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