Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created September 17, 2020 01:17
Show Gist options
  • Save iaindooley/2ea7d33bf1570da7609c6b498b0fa17b to your computer and use it in GitHub Desktop.
Save iaindooley/2ea7d33bf1570da7609c6b498b0fa17b to your computer and use it in GitHub Desktop.
Find custom field value across all boards
function searchCustomFieldOnAllBoards()
{
var search_term = "apple";
var field_name = "Product Name";
var output = [];
new Trellinator().boards().each(function(board)
{
board.cards().each(function(card)
{
if(card.customFieldValue().toLowerCase().indexOf(search_term.toLowerCase()) > -1)
{
output.push("Found in: "+card.link());
Utilities.sleep(2000);
}
});
});
Logger.log(output.join("\n"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment