Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active April 26, 2019 06:13
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/11ad5d5effdb62e4c1f0ca0246aed238 to your computer and use it in GitHub Desktop.
Save iaindooley/11ad5d5effdb62e4c1f0ca0246aed238 to your computer and use it in GitHub Desktop.
Round robin
function roundRobin(notification)
{
var card = new Notification(notification).createdCard("Inbox");
//You will need a list called "Round Robin" with one card per
//team member in it, with the name of the card being the member
//name for this to work
var rr_list = card.board().list("Round Robin");
var assignee = rr_list.cards().first();
card.addMember(new Member({username: assignee.name()}));
assignee.moveToList(rr_list,"bottom");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment