handle getting attachments associated with a task