The assumption here is that the number of attachments are small enough to justify linear search in AttachmentSetImpl.get(String) . author: Kohsuke Kawaguchi