I am trying to find sub-tasks where the parent User Story has a specific component.
This is the closest JQL I could find using other community answers, but I'm getting an error on the function.
project = MyProject AND issuetype = sub-task and issue in parent("component = 'Data Migration'")
error: Unable to find JQL function 'parent(component = 'Data Migration')'.