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/574b1526eddf4f8cd256ad0d7bb23ed4 to your computer and use it in GitHub Desktop.
Save iaindooley/574b1526eddf4f8cd256ad0d7bb23ed4 to your computer and use it in GitHub Desktop.
Match to component card
function matchToComponentCard(notification)
{
var created = new Notification(notification).createdCard();
var split = created.name().split(" ");
var otherboard = new Trellinator().board("Source");
for(var i = 0;i < split.length;i++)
{
try
{
created.attachLink(otherboard.card(split[i]).attachLink(created.link()).link());
}
catch(e)
{
Notification.expectException(InvalidDataException,e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment