Created
March 25, 2021 00:56
-
-
Save iaindooley/cdf9c804fda763da7ce0482c7b467ec9 to your computer and use it in GitHub Desktop.
deleteAllEmptyDescriptionCards
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
var created = new Notification(notification).createdCard(); | |
var list_name_to_clear = "PUT YOUR LIST NAME HERE"; | |
if(!created.name() == "DELETE EMPTY DESCRIPTIONS") | |
throw new InvalidActionException("Not interested in created cards that don't tell us to delete descriptions"); | |
created.board().cards().each(function(card) | |
{ | |
if(!card.description().trim()) | |
card.archive(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment