Multiple filters for search API

henry liu January 15, 2018

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 votes
Oscar Triscon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2018

Have you tried URL-encoding the parameters?

 

GET 1/search?query=name:%22cardname%22%20is:open%20is:archived
henry liu January 17, 2018

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
TAGS
AUG Leaders

Atlassian Community Events