Skip to content

Instantly share code, notes, and snippets.

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/d81e5f3881de68c071bd5122c9fc719b to your computer and use it in GitHub Desktop.
Save iaindooley/d81e5f3881de68c071bd5122c9fc719b to your computer and use it in GitHub Desktop.
Move next card in the list
function moveNextCardInTheList(notification)
{
var moved = new Notification(notification).movedCard("Done");
var label = moved.label("Project Label");
var trell = new new Trellinator();
trell.board("Category Board").list("Project List").cards().find(function(card)
{
try
{
card.label("Project Label");
return card;
}
catch(e)
{
Notification.expectException(InvalidDataException,e);
return false;
}
}).first().moveToList(trell.board("Planning Board").list("Incoming Tasks"),"top");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment