This part of automation sends a comment when all Sub-Tasks are in status 'In Progress'
And notify everyone who is assigned to any sub-issue type of Parent Task:

The same case here, but automation sends when all Sub-Bugs are in status 'In Progress'
Also tags everyone who is assigned to any sub-issue type of Parent Task:

Here are all my sub-issues of Parent Task, Here you can see two Sub-issue Types:
- Sub-Task ( On top of the screen )
- Sub-Bug ( On bottom of the screen )

Below is how automation sends the comment in two cases:
- All sub-tasks are 'In Progress'
- All sub-bugs are 'In Progress'

As you can see automation tags everyone who has been assigned to some sub-issue of the parent task.
What do I need?
- In case when all sub-tasks are in status 'In Progress'
I want to receive the same comment but with peoples who are assigned to all Sub-Task only, not from sub-bugs too.
( I mean do not recieve from all sub-issues of the parent task, only from sub-task )
- The same with second case, when all sub-bugs are In Progress,
I want to recieve a comment with everyone who are assigned to Sub-bugs only.
So how can I handdle ths case with Jira Smart Values or maybe some another solution.