Created
May 6, 2020 04:50
-
-
Save iaindooley/574b1526eddf4f8cd256ad0d7bb23ed4 to your computer and use it in GitHub Desktop.
Match to component card
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
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