Attachments
hasAttachments
hasAttachments ([file extension])
Find issues with attachments:
issueFunction in hasAttachments ()
You can use the optional first argument to specify the attachment file extension:
issueFunction in hasAttachments ("pdf")
fileAttached
fileAttached(attachment query)
Takes the same arguments as commented
(see Predicates) with the exception of role, group and updated by, which aren’t supported for attachments.
Example: find issues which have files attached by jbloggs within the last 4 weeks:
issueFunction in fileAttached("after -4w by jbloggs")