Searches of the format board: are not returning any results as of June 9 2021. I’ve tested using both the UI and API search and both return an empty result set for boards which have cards.
Searching in the UI with the query “board:” or “board:”“” also returns an empty result: “We couldn’t find any cards or boards that matched your search.”
I have permissions to retrieve cards on the given board. I am able to retrieve cards directly using the cards API:
Interesting. Can you screenshot that? When you check out the Network tab in your browser console, do you see the request firing off to trello.com/1/ and a response coming back?
The “board:” query is certainly broken when searching in the UI and over REST - no cards are returned when using it. Why are there no updates to this issue?
Not sure what you mean by that, but I found this thread because I had the same problem as the reporter. That is, an API query for cards on boards with query string "board:\"BOARD-ID\"" that previously worked now returns no cards. So I tried the same thing in the UI with the same result - very simple, just a search specifying a board and nothing else. I don’t even have to write the complete query, just select one of Trellos suggestions
I can confirm this same fault. A search via the REST API for all cards in particular board, using that board’s ID or name, will return an empty array for the cards:
Forgive me. I’m not familiar with using the search through the API that much. I use the other routes a lot though. So, I’m curious what the advantage is to doing a query vs just the /boards/{{board_id}}/cardsend point?
Well, if your goal was just to get all the cards in a board with no other criteria, there would be no advantage in using the Search endpoint compared to using the Get cards on a Board endpoint; it produces essentially the same result.
The Search endpoint is just more flexible and allows you to search for specific things with additional criteria to filter the results.
I guess it sort of compensates for Trello not having a object query language like JQL / CQL that Jira / Confluence have.
@sunnyape - That makes sense. I personally just query the cards or lists I’m looking for and rely on the language I’m using to run queries on the data that comes back. If I’m smart about it it’s really reliable and very quick. But, I get the alure of search.