Hello All,
I am trying to create an automation for a process we have for our testing.
Our Testing team will be using Sub-tasks for each test step and if anything fails they will be creating linked defects from each sub-task. I want to create an automation that will link the defect that is linked to the sub-task to the main task and any related stories that the task has.
I have tried using a branch but it links the sub-task to the task instead of the bug. Can anyone help solve this?
If I use the trigger issue the sub-task will be linked to the task and not the bug.
I haven't managed to find a way to link it to the related story either.
If I try to use the most recently created issue I get the error on the second image.


