We have two custom sub-tasks in our project.
Lets Say A and B. These are generally created under the story.
We want to automatically link all the sub task B to sub Task as they are created. I
Ideally, under the story, only 01 sub task A will be there and Sub task B can be multiple.

If Sub Task A is more than one, we don't run the rule.
I have tried multiple ways to link but seems I am not able to achieve it.

The idea is to link Sub Task B to Sub Task A under the same Story, when Count of Sub Task A is only one.