The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to use REST w/ CQL to pre-filter API results?

Patrick Wilson
October 28, 2019

For example, I want to find all pages with metadata.labels.size=0 (find pages with no labels).
I would think I could do something like this:

(base URL) api/search?cql=(space=SPACEKEY and type=page)&expand=content.metadata.labels&size=0

...to try to only pull results with 0 in the size field:

2019-10-28_17-21-11.png

But trying to force the query to only show size=0 isn't working.  Is it even possible to pre-filter with these API calls, or API with CQL?

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events