Created
October 19, 2020 07:56
-
-
Save iaindooley/62fe141876d23d79469da792db96ce4b to your computer and use it in GitHub Desktop.
Move cards with label
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 b = new Trellinator().board("My Board");//change the name here | |
var l1 = b.list("Target 1");//change the names of your lists | |
var l2 = b.list("Target 2"); | |
b.list("My List").cards().each(function(card)//change the name of your list | |
{ | |
try | |
{ | |
card.label("Label 1");//move cards with Label 1 into list 1 | |
card.moveTo(l1); | |
} | |
catch(e) | |
{ | |
card.moveTo(l2);//else move cards without that label in to list 2 | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment