Refactored the getAttachmentsByIssueId method to now return an empty list if no results are found