插件为拥有附件issue提供了JQL函数

Alias

Equivalent havingAttachments JQL

Result

issue in attContent("word")issue in havingAttachments("content: word")returns list of issues which have an attachment, which contains a 'word' inside file content
issue in attName("sample")issue in havingAttachments("sample")all issues that have attachment with name 'sample'
issue in attType("pdf")issue in havingAttachments("type:pdf") all issues with 'pdf' attachments


Advanced function - havingAttachments

The add-on provides havingAttachments("query") JQL function, where syntax of the query is a bit similar to Google or Bing search engine query syntax, for example:

In general, you can use any Lucene query, with the following fields available:

Wildcards

Two wildcards (* and ?) can be used in search terms. Wildcards will not work if you search for phrase like: havingAttachments("\"multi-word text\""). Wildcards are ignored when used in phrases.