The JQL Tricks Plugin (https://marketplace.atlassian.com/plugins/com.j-tricks%3Ajql-plugin) has a hasAttachments() function - but it's commercial...
Try number of attachments custom field that you can find in one of free plugins (Jira Toolkit mayhaps)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.