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