Hi
In my project with story- subtask structure, in story when apply "Create subtask" button , we need to restrict component according to subtask issuetype , like as below pic:

for example:
when issuetype is 1:
component can show only 1, 1-1, 1-1-1
when issuetype is 2:
component can show only 2, 2-2, 2-2-2
How do this ?
Thanks