Last active
March 25, 2021 00:55
-
-
Save iaindooley/39997991a90cfbd1b5ac390bbb6d9331 to your computer and use it in GitHub Desktop.
deleteEmptyDescriptions
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().list(list_name_to_clear).cards().each(function(card) | |
{ | |
if(!card.description().trim()) | |
card.archive(); | |
}); | |
created.archive(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment