I want to use the automation rule to generate a subtask label that includes the parent task's label followed by a dot and the subtask's number. For example, if the parent task's label is "1.2.3" and the subtask is the first subtask created under that parent task, the subtask's label will be "1.2.3.1". If the subtask is the second subtask created under the same parent task, its label will be "1.2.3.2", and so on.
I used automation rules and smart value as below but got an error.

Would you please guide me in this regard?
Thanks,
Nasim