Created
June 3, 2021 02:31
-
-
Save iaindooley/f2a188f45e31aa6c38de0247e88a97ac to your computer and use it in GitHub Desktop.
linkAndArchiveDuplicates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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