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 exclude one specific file type in CQL?

Hi all,

I'm trying to exclude one certain file type (*.json) from the CQL search results. I already looked up here, but did'n find any working solution:

Has anyone an idea?

Thank you!

1 answer

1 accepted

0 votes
Answer accepted

Hello Manuel,

Happy to try and help you with this!

According to How to Search Specific Attachment Type in Confluence, you can use the following to narrow down a specific attachment:

/.*<attachment type>.*/ 

I then used the information from Confluence Search Syntax to negate that, by putting a minus (-) sign in front of that attachment type. It returned all files that were NOT the attachment type.

Thus, I think this would work for you:


Can you give that a try and let me know how that goes?


Hello Shannon,

that's exactly what I was looking for! Works perfectly fine for me!

Thank you!



PS: Just use a "NOT" instead of a "-" (minus). ;-)


Both NOT and minus (-) should work, but whichever one is easiest for you! I tested and can confirm both.

Glad to hear it helped, and have a pleasant rest of your week.

Take care,


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,435 views 6 6
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