Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created March 20, 2019 00:05
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/0feda1d3cf87a028bc58b7e21d738a32 to your computer and use it in GitHub Desktop.
Save iaindooley/0feda1d3cf87a028bc58b7e21d738a32 to your computer and use it in GitHub Desktop.
Ready to assemble
function readyToAssemble(notification)
{
var card = new Notification(notification).movedCard("Done");
var master = card.cardsLinkedInAttachments().first();
if(master
.checkItemByName(card.link())
.checklist("Parts")
.isComplete())
{
master.addLabel("Ready to Assemble");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment