Attachments

hasAttachments

hasAttachments ([file extension])
CODE

Find issues with attachments:

issueFunction in hasAttachments ()
CODE

You can use the optional first argument to specify the attachment file extension:

issueFunction in hasAttachments ("pdf")
CODE

fileAttached

fileAttached(attachment query)
CODE

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")
CODE