Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created April 29, 2019 01:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/633a88cc7e65a8498f4fd1fff44e66bc to your computer and use it in GitHub Desktop.
Save iaindooley/633a88cc7e65a8498f4fd1fff44e66bc to your computer and use it in GitHub Desktop.
Delete extraneous custom fields
function deleteExtraneousCustomFields(notification)
{
var notif = new Notification(notification);
notif.addedCard();
var defs = notif.board().card("Custom Field Definitions").description().split("\n");
notif.board().customFields().each(function(field)
{
if(defs.indexOf(field.name()) == -1)
field.del();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment