Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Link issue to asset card
function linkIssueToAssetCard(notification)
{
var created = new Notification(notification).createdCard();
if(parts = /.+\b([A-Z0-9]+)-([A-Z0-9]+)-([A-Z0-9]+)\b.+/.exec(created.name()))
{
created.attachLink(
new Trellinator()
.board("Assets")
.card(new RegExp(".+"+RegExp.escape(parts[1])+".+")
.link()
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment