Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Copy to list based on label
function copyToListBasedOnLabel(notification)
{
var card = new Notification(notification).movedCard("Finished Posts");
card.labels().each(function(label)
{
if(label.name() == "FB")
card.copyToList(card.board().list("Facebook"),"top");
else if(label.name() == "TW")
card.copyToList(card.board().list("Twitter"),"top");
else if(label.name() == "IG")
card.copyToList(card.board().list("Instagram"),"top");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.