Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Swap members
var from_member = "from_username";//current assignee, no @ symbol like iaindooley
var to_member = "to_username";//new assignee
var board_name = "Board Name";//the board where this should take place
/////////don't change below here///////////
var add = new Member({username: to_member});
var remove = new Member({username: from_member});
new Trellinator().board(board_name).cards().each(function(card)
{
try
{
card.member(from_member);
card.removeMember(remove).addMember(add);
}
catch(e)
{
Notification.expectException(InvalidDataException,e);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment