Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created April 10, 2019 04:24
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/2003719dd5b7987374f8341a11441d3d to your computer and use it in GitHub Desktop.
Save iaindooley/2003719dd5b7987374f8341a11441d3d to your computer and use it in GitHub Desktop.
Mirror cards based on label
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