JQL field
attachments in JQL: field syntax and examples
The attachments field tells you whether a work item has any files attached. It answers a yes or no question, nothing more. Use it to chase missing screenshots on bugs or to collect work that already carries evidence.
Syntax
attachments is EMPTY
attachments is not EMPTY
Works with
- Field type: ATTACHMENT, with auto-complete
- Operators: IS, IS NOT
- Functions: none
- Not with: =, !=, ~, !~, >, >=, <, <=, IN, NOT IN, WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED
Examples
attachments is not EMPTYEvery work item that has at least one file attached. A starting point for an evidence review.
Run on Jira Cloud on .
attachments is EMPTY AND issuetype = Bug AND status = "In Progress"Bugs being worked on that still have no screenshot or log attached. Good for a stand-up nudge.
Run on Jira Cloud on .
project = WEB AND attachments is not EMPTY ORDER BY updated DESCWork with files in one project, most recently changed first, so recent uploads surface at the top.
Run on Jira Cloud on .
attachments is EMPTY AND project = MOB AND statusCategory != DoneOpen work in one project with no files at all, useful when a release needs mock-ups or specs on every item.
Run on Jira Cloud on .
attachments is not EMPTY AND status != DoneOpen work that already carries files, for a handover where the attachments matter.
Run on Jira Cloud on .
Pitfalls
- The field only knows whether files exist.
attachments = 1andattachments > 0are both rejected, for example "The operator '=' is not supported by the 'attachments' field." You cannot count files or filter by size or type (checked on Jira Cloud, November 2026). !=andINfail the same way:attachments != EMPTYreturns "The operator '!=' is not supported by the 'attachments' field." Writeis not EMPTYinstead.attachments IS NULLis accepted and behaves likeis EMPTY(checked on Jira Cloud, November 2026), but stick to EMPTY so saved filters read the same everywhere.- There is no way to search the file name with this field.
attachments ~ "log"returns "The operator '~' is not supported by the 'attachments' field."
Questions and answers
Can JQL find work items with more than one attachment?
No. The field accepts only IS and IS NOT, so it can tell you whether any file exists but not how many.