WIKI-741 get attachments by query