Created
April 17, 2019 23:31
-
-
Save iaindooley/0363c9a2870ba2c582328963a3c612f6 to your computer and use it in GitHub Desktop.
Search cards on a board using custom field as input
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 searchCardsOnBoardsUsingCustomFieldAsInput(notification) | |
{ | |
var field = new Notification(notification).changedCustomField("Query"); | |
TrelloApi.searchCardsInBoards(new Trellinator().boards(),"is:open "+field.value()).each(function(card) | |
{ | |
field.card().addChecklist("Results",function(list) | |
{ | |
list.addUniqueItem(card.link()); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment