Created
March 27, 2019 23:18
-
-
Save iaindooley/3b6e08acf049479640600f4504b0eea9 to your computer and use it in GitHub Desktop.
Cards due in 24 hours or no due date
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 cardsDueIn24HoursOrNoDueDate() | |
{ | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().insertSheet("Due Soon or Not Due"); | |
new IterableCollection(TrelloApi | |
.searchCardsInBoards(new Trellinator().board("My Board"),"-due:incomplete is:open") | |
.cards() | |
.asArray() | |
.concat( | |
TrelloApi | |
.searchCardsInBoards(new Trellinator().board("My Board"),"due:day is:open") | |
.cards() | |
.asArray() | |
)).each(function(card) | |
{ | |
sheet.appendRow([card.link(),card.due(),card.name()]); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment