How to create subitems if they do not exist and how to change status of item based on status of a specific subitem?

Thank you, that solves both my questions. Appreciate your help.