# attachments in JQL: field syntax and examples

URL: https://goingstellar.ro/reference/jql/attachments-field/

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 EMPTY
```

Every work item that has at least one file attached. A starting point for an evidence review. Run on Jira Cloud on 2026-11-29.

```
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 2026-11-29.

```
project = WEB AND attachments is not EMPTY ORDER BY updated DESC
```

Work with files in one project, most recently changed first, so recent uploads surface at the top. Run on Jira Cloud on 2026-11-29.

```
attachments is EMPTY AND project = MOB AND statusCategory != Done
```

Open 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 2026-11-29.

```
attachments is not EMPTY AND status != Done
```

Open work that already carries files, for a handover where the attachments matter. Run on Jira Cloud on 2026-11-29.

## Pitfalls

- The field only knows whether files exist. `attachments = 1` and `attachments > 0` are 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).
- `!=` and `IN` fail the same way: `attachments != EMPTY` returns "The operator '!=' is not supported by the 'attachments' field." Write `is not EMPTY` instead.
- `attachments IS NULL` is accepted and behaves like `is 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.

## Related

- [EMPTY](https://goingstellar.ro/reference/jql/empty-keyword/)
- [IS](https://goingstellar.ro/reference/jql/is-operator/)
- [IS NOT](https://goingstellar.ro/reference/jql/is-not-operator/)
- [status](https://goingstellar.ro/reference/jql/status-field/)
- [type](https://goingstellar.ro/reference/jql/type-field/)
- [ORDER BY](https://goingstellar.ro/reference/jql/order-by/)

## Sources

- [JQL fields (Atlassian Support, Jira Cloud)](https://support.atlassian.com/jira-software-cloud/docs/jql-fields/)

