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

0 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jun 20, 2018 in Trello

Get inspired with Trello & earn free Gold

A blank Trello board can be both a beautiful and intimidating thing. How many lists should I have? Is creating 10 labels overkill? How can I best track my progress? Is there a way...

16,747 views 0 14
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