Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created March 26, 2019 03:12
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/6f4bae7a58ecd15acb10b47729fce571 to your computer and use it in GitHub Desktop.
Save iaindooley/6f4bae7a58ecd15acb10b47729fce571 to your computer and use it in GitHub Desktop.
Action items
function createActionItemsWeekly(board,signature,original_time)
{
new Board(board).list("Pending Meeting").cards().each(function(card)
{
card.addChecklist("Action Items");
});
ExecutionQueue.push("createActionItemsWeekly",board,signature,original_time.addDays(7));
}
function createActionItemsFromChecklist(notification)
{
var card = new Notification(notification).movedCard("Create Action Items");
card
.moveTo("Pending Meeting")
.checklist("Action Items")
.convertIntoLinkedCards(card.board().findOrCreateList(card.name()+" Action Items "+Trellinator.now().butlerDefaultDate()),
{desc: card.link()})
.setName("Action Items Processed "+Trellinator.now().butlerDefaultDate());
}
function archiveCompletedActionItem(notification)
{
var card = new Notification(notification).archivedCard();
card.cardLinkedInDescription().checkItemByName(card.link());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment