Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created April 17, 2019 03:54
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/6f85790c31667d77ae4aacd47773d7dd to your computer and use it in GitHub Desktop.
Save iaindooley/6f85790c31667d77ae4aacd47773d7dd to your computer and use it in GitHub Desktop.
Report on linked boards
function reportOnLinkedBoards(board,signature,original_time)
{
new Board(board).cards().each(function(card)
{
var linked_board = card.boardsLinkedInAttachments().first();
card.setCustomFieldValue("To Do",linked_board.list("To Do").countCards());
card.setCustomFieldValue("Doing",linked_board.list("Doing").countCards());
card.setCustomFieldValue("Done",linked_board.list("Done").countCards());
});
ExecutionQueue.push("reportOnLinkedBoards",board,signature,original_time.addHours(1));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment