Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created August 22, 2020 01:08
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/30c7ae1bc868748d05c599913513cfe9 to your computer and use it in GitHub Desktop.
Save iaindooley/30c7ae1bc868748d05c599913513cfe9 to your computer and use it in GitHub Desktop.
Checklist from description
function checklistFromDescription(notification)
{
var created = new Notification(notification).createdCard();
var lines = created.description().split("\n");
created.addChecklist("Checklist",function(cl)
{
for(var i = 0;i < lines.length;i++)
{
cl.addItem(lines[i]);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment