In a case you create new 2 virtual attributes on investment sub object where each is based on different parent object but with the same parent's object attribute id. It does show values only for one
Steps to Reproduce:
Create virtual attribute X2 on the object virtual attribute should be based on project object attribute Project Type
Create virtual attribute X1 on the object virtual attribute should be based on Idea object attribute Idea Type
Configure the sub-object as module on the idea, project and hierarchy blueprint
Map an idea instance with Idea blueprint and passed value for idea type field on idea instance
Map a project instance with project blueprint and passed value for project type field on project instance
Create instances for the sub-object on idea and project
Create a Hierarchy and import the idea and project instances from step 4&5
Navigate to Sub object tab on Hierarchy
Navigate to sub object on Project
Navigate to sub object on Idea
Expected Results:
Hierarchy - The values for virtual attributes are populated for idea and project instances
Project - The values for virtual attributes are available on sub object
Idea - The values for virtual attributes are available on sub object
Actual Results:
Hierarchy - The values for virtual attributes are available only for idea. The value for project based attribute also displays the value same as idea based attribute
Project - The values for virtual attributes are blank
Idea - The values for virtual attributes are available but the project based attribute also displays the value same as idea based attribute