Skip to content

Instantly share code, notes, and snippets.

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/f2a188f45e31aa6c38de0247e88a97ac to your computer and use it in GitHub Desktop.
Save iaindooley/f2a188f45e31aa6c38de0247e88a97ac to your computer and use it in GitHub Desktop.
linkAndArchiveDuplicates
const created = new Notification(notification).createdCard(/Inbox/i);
created.board().cards().each(function(loop)
{
if((loop.id() != created.id()) && (loop.name().toLowerCase() == created.name().toLowerCase()))
{
created.attachLink(loop.archive().link());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment