Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created April 17, 2019 23:31
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/0363c9a2870ba2c582328963a3c612f6 to your computer and use it in GitHub Desktop.
Save iaindooley/0363c9a2870ba2c582328963a3c612f6 to your computer and use it in GitHub Desktop.
Search cards on a board using custom field as input
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