Skip to content

Instantly share code, notes, and snippets.

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/d5dbc9f1490a09febc6ebf07ca8a21ef to your computer and use it in GitHub Desktop.
Save iaindooley/d5dbc9f1490a09febc6ebf07ca8a21ef to your computer and use it in GitHub Desktop.
Cards created in the last 24 hours
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