Created
April 17, 2019 03:54
-
-
Save iaindooley/6f85790c31667d77ae4aacd47773d7dd to your computer and use it in GitHub Desktop.
Report on linked boards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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