Skip to content

Instantly share code, notes, and snippets.

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