It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

294 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you