Created
September 17, 2020 01:17
-
-
Save iaindooley/2ea7d33bf1570da7609c6b498b0fa17b to your computer and use it in GitHub Desktop.
Find custom field value across all boards
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 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