Jira allows to structure issues hierarchically by using links between any kind of issues (tasks) as well as parent/subtask relations. But there is no further functionality implemented that a neither a subtask nor a linked issue/task can influence its superior task and vice versa.
The catworkx Transition Trigger Functions for Jira app provides a collection of post-functions where a transition of one Jira issue can trigger a transition of another Jira issue. For example, if the superior task enters a certain state, a transition is performed on sub- or related tasks. Additionally, you can limit this transition to defined (sub-)issue types.
188.8.131.52 for Jira 8.0 - 8.4.x
184.108.40.206 for Jira 8.5 - 8.x
220.127.116.11 for Jira 9