conditional formatting for nested rows


I have nested rows and linked activities. I dont know how to set up CF properly to colour task bars of the parent rows? In this example, you can see there two conditions which I've coloured yellow and orange (defining condition that task name contains specific text ) but they are the child rows. It doesn't work for the two parent rows whose task bars continue to be grey despite me defining condition Task containing My10_1 should have blue font (which it does) and blue task bar which doesn't happen. How do I make those task bars turn another colour?