Created
April 10, 2019 04:24
-
-
Save iaindooley/2003719dd5b7987374f8341a11441d3d to your computer and use it in GitHub Desktop.
Mirror cards based on label
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 mirrorCardsBasedOnLabel(notification) | |
{ | |
var label = new Notification(notification).addedLabel(); | |
label | |
.card() | |
.attachLink(label.card().copyToList(Board.findOrCreate(label.color()+" Team") | |
.findOrCreateList("Inbox")) | |
.attachLink(label.card().link()) | |
.link()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment