have you heard about logseq? It seems to me that it is what you are looking for
I use todoist for basic task management, but it's ability to view history is virtually non existent so I don't bother attaching documents or anything related to a project there. But I use the API to compile task history, so I could integrate them as markdown files into this so I don't have to start from scratch in building things up.