Can a workspace be attached to a task?
Not sure I understand what you mean by attached. But... you can reference a workspace (site) by using a URL.