Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
deleteEmptyDescriptions
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