Created
July 22, 2020 05:29
-
-
Save iaindooley/d81e5f3881de68c071bd5122c9fc719b to your computer and use it in GitHub Desktop.
Move next card in the list
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
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