Multiple filters for search API

hi,

how can i build the query string of search api for card? with multiple filter, like card name, archived status, etc.

querystring = 'name:cardname is:open and is:archived' ? but not work.

Henry

1 answer

This widget could not be displayed.
Oscar Triscon Community Champion Jan 16, 2018

Have you tried URL-encoding the parameters?

 

GET 1/search?query=name:%22cardname%22%20is:open%20is:archived

actually i'm not using url encoding, i'm using the following

querystring = {}
querystring['query'] = 'name:{0} is:{1}'.format(cardName,status)

response = requests.request('GET',url,params=querystring)

seems it works now. thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Sep 11, 2018 in Trello

There’s a Power-up for That!

So you’re using Trello at work, at home and to track your new DIY crafts. The family and co-workers are all on board and everything is organized, color coded and has a due date. But still, there’s so...

265 views 1 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you