Created
May 20, 2019 09:48
-
-
Save iaindooley/2ad9701f1095b8eaeef2952c458f1723 to your computer and use it in GitHub Desktop.
Copy to list 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 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