Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active March 25, 2021 00:55
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/39997991a90cfbd1b5ac390bbb6d9331 to your computer and use it in GitHub Desktop.
Save iaindooley/39997991a90cfbd1b5ac390bbb6d9331 to your computer and use it in GitHub Desktop.
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