Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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