I am trying to have any work item link that is linked to my QA, Dev, and Requirements subtasks automatically linked to the parent task.
This isnt working, I believe because of my IF condition, its only copying links for work items that match the type "QA" "Dev" or "Requirements" and not linking "Bugs" and "Stories" for example.
If I remove the IF condition it doesn't link anything tho.
What I am doing wrong?

Example of what I would like :
Parent: JIRA-12 (STORY)
- CHILD: JIRA-13 (DEV Subtask)
- CHILD: JIRA-14 (QA Subtask)
MISC ITEM: JIRA-15 (BUG)
create a link from JIRA-13 to JIRA-15 -> Automatically copy that link from JIRA-12 to JIRA-15