Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active May 2, 2020 09:30
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/1313243b718e0d5e3381062195da99a8 to your computer and use it in GitHub Desktop.
Save iaindooley/1313243b718e0d5e3381062195da99a8 to your computer and use it in GitHub Desktop.
Add comment and checklist
function addCommentAndChecklist(notification)
{
var added = new Notification(notification).addedCard();
var tpl = added.board().list("Templates").cards().first();
tpl.copyUniqueChecklist(added.card().currentList().name(),added.card());
added.card().postComment(tpl.comments().first().text());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment