Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created March 25, 2021 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/cdf9c804fda763da7ce0482c7b467ec9 to your computer and use it in GitHub Desktop.
Save iaindooley/cdf9c804fda763da7ce0482c7b467ec9 to your computer and use it in GitHub Desktop.
deleteAllEmptyDescriptionCards
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