code: public CollectionRequest<Attachment> findByTask(String task) {
      
          String path = String.format("/tasks/%s/attachments", task);
          return new CollectionRequest<Attachment>(this, Attachment.class, path, "GET");
      }
docs: Returns the compact records for all attachments on the task.
  
  @param  task Globally unique identifier for the task.
  @return Request object