We are using additional issue type say Initiatives which are parents of epics.
so our hierarchy is
Initatives -> Epic ->Task or Bug -> subtask
we have implemented automation rule that will transition the epic when a task or bug gets transitioned
I dont see a way to transtion the initative when Epic is transitioned as there is no parent type under linked issues or just a parent (only parent of subtype and Epic)