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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events