I have the following database setup:
- Milestones contain many projects (currently a 1-to-many but might be better as many-to-many)
- Projects contain many tasks (currently a 1-to-many but may be better as a many-to-many).
I would like to link the tasks to their (grand)parent milestones. I see how I can visualize this relationship in a multi-level list, but this list isn’t as useful something like a Board would be.
I tried to make an automatic link between Milestones and Tasks, where if a Task’s Project matches any of the Milestone’s projects, they will be linked up, but the ‘rule’ only seems to only work in one direction (since a task has only one project, I can select it as the lookup key, but because a milestone has many projects, I can’t select it for the matching lookup key).
Does automatic linking only work for 1-to-1 relationships? If not, how can I approach this differently?
Is there some other way of traversing up a tree from a child node to it’s parent node’s parent node (does this make sense)?