team_id
is not automatically copied down through an entire project structure. I am fairly certain that team_id
is copied down to direct relationships (at least in 11sp12, I'm not as certain about 11sp5). However, it is not automatically copied down to related items further down the tree. Your best bet would be to create a server method onBeforeUpdate
of the project that takes the team_id
and copies it down through the whole project structure (using AML or SQL). Doing this during project creation will be trickier since onBeforeAdd
/onAfterAdd
of the project will run before the relationships are created. You can either handle this with a scheduled method, or by adding a server method to the onBeforeAdd
or onAfterAdd
of each relevant relationship in the tree.