Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Fields - Search/Filter via API?

leotulipan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 1, 2023

I am trying to make an automation for our board, but custom fields are not searchable and the

{{%fieldname}}=value also doesnt work (e.g. when going to https://trello.com/search?q={{%fieldname}}=value

 

Can there be an easy way in the api to serach/filter such cards.

The only other solution is to search for all cards on the board/list where you expect the card to be and go through each card to find the one you are looking for.

 

idealy custom_fields would be a parameter for /search

 

The API calls https://developer.atlassian.com/cloud/trello/rest/api-group-search/ needed now are

 

GET /1/boards/{id}/customFields/

get the id for the name of the custom field (once)

 

GET /1/search

search the card on the list/board

 

GET /1/cards/{id}/customFieldItems

Go through each card you found with search and get the custom field value to compare to the one you are looking for

2 answers

1 accepted

0 votes
Answer accepted
Alex W
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 2, 2023

Hey @leotulipan - welcome to the Community!

Sorry to deflect you, but I reckon you would find an answer to this question over in our Developer Community, which can be found at https://community.developer.atlassian.com/c/trello/42

0 votes
leotulipan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 2, 2023

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events