Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created February 13, 2019 01:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save iaindooley/74234bab3302f37d21b5cb9350dda87f to your computer and use it in GitHub Desktop.
Goal setting automations
function createListFromCard(notification)
{
var card = new Notification(notification).addedCard("Active Goals");
Card.create(card.board().findOrCreateList(card.name(),"bottom"),"Stakeholders -- ADD MEMBERS!");
}
function archiveGoalTasks(notification)
{
var card = new Notification(notification).movedCard(/Done.*/);
var list = card.board().list(card.name());
list.cards().each(function(loop)
{
card.addChecklist("Tasks",function(list)
{
list.addItem(loop.link());
});
});
list.archive();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment