Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Multiple filters for search API

henry liu
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!
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
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!
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