Tie a document to a task