Created
September 5, 2019 23:47
-
-
Save iaindooley/981daca6db0ca82abc17ff1ddaecd61a to your computer and use it in GitHub Desktop.
Email Trello Board
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 emailTrelloBoard() | |
{ | |
var output = ""; | |
new Trellinator().board("My Board").lists().each(function(list) | |
{ | |
output = output+list.name()+":\n\n"; | |
list.cards().each(function(card) | |
{ | |
try | |
{ | |
card.member("targerusername"); | |
output = output+" - "+card.name()+"\n"; | |
} | |
catch(e) | |
{ | |
Notification.expectException(InvalidDataException,e); | |
} | |
}); | |
output = output+"\n\n------\n\n"; | |
}); | |
MailApp.sendEmail("target@user.com", | |
"Trello tasks "+Trellinator.now().butlerDefaultDate(), | |
output); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment