Created
May 16, 2020 12:59
-
-
Save iaindooley/d5dbc9f1490a09febc6ebf07ca8a21ef to your computer and use it in GitHub Desktop.
Cards created in the last 24 hours
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 cardsCreatedInTheLast24Hours(params,signature,original_time) | |
{ | |
Card.findOrCreate(new Board(params).findOrCreateList("Reports"),original_time.toLocaleString()) | |
.addChecklist("Recent Cards",function(cl) | |
{ | |
new Trellinator().boards().each(function(board) | |
{ | |
board.cards().each(function(card) | |
{ | |
if(card.whenCreated() < Trellinator.now().minusHours(24)) | |
{ | |
cl.addItem(card.mobileFriendlyLink()); | |
} | |
}); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment