Enhanced Search for Jira Cloud

Attachments

numberOfAttachments

Find issues that have a certain number of file attachments.

status = Closed AND numberOfAttachments > 3

This keyword can be used with numeric comparison operators.

attachmentType

Search for issues that have a particular file type attached to them. File types are determined by the file extension. For example, a file called screenshot.png has a file type of 'png'.

numberOfAttachments > 0 AND attachmentType = 'jpg'
issuetype = Invoice AND attachmentType in ('pdf', 'docx', 'xls')

This keyword can use the =, !=, in and not in operators.

firstAttachmentDate

Find issues based on the date the first attachment was added:

project = STORAGE AND firstAttachmentDate < now()
project = STORAGE AND firstAttachmentDate >= '2016-04-01'
project = STORAGE AND firstAttachmentDate = '2000-01-01'

Relative date functions can be used as well as regular numeric comparison operators.

lastAttachmentDate

The lastAttachmentDate keyword can be used to find issues based on the date that the most recent attachment was added:

project = STORAGE AND lastAttachmentDate > startOfMonth()

In the same way as firstAttachmentDate, this keyword can use the numeric comparison operators and the relative date JQL functions.

fileAttachedBy

This keyword can be used to find issues that have a file attached by a particular user. You must use the accountID of the user you are interested in.

reporter = currentUser() AND fileAttachedBy = "012345-678912-34567-891011"

This keyword can also be compared using the !=, in and not in operators.