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/b4dc66ecedf62a9ca71762bacf8d3c48 to your computer and use it in GitHub Desktop.
Save iaindooley/b4dc66ecedf62a9ca71762bacf8d3c48 to your computer and use it in GitHub Desktop.
Report with comment
var output = [];
new Trellinator().board("BenkoBot Roadmap").lists().each(function(list)
{
var curout = [];
curout.push(list.name()+":");
list.cards().each(function(card)
{
try
{
var latest = card.comments().first().text();
}
catch(e)
{
Notification.expectException(InvalidDataException,e);
var latest = "";
}
curout.push(" - "+card.name()+" "+card.due()+latest);
});
output.push(curout.join("\n"));
});
console.log(output.join("\n"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment