I have an requirement where I want to create link between subtasks under same parent. This link is of has to be done after and has to be done before (Dependency) between all the subtasks in that parent. How this linking can be achieved via Automation?

Now I want to link this subtask with other subtask which has particular summary and so on.