I tried to find it at various place but I dont find any concrete solution on how can I create a filter in JIRA that would list me all those sub-task that are linked to User stories in the current sprint. I tried various JQL's but no luck, one such sample;
project = "XYZ Advisor Project" AND "Team (XYZ)" = "Team Blue" AND Sprint in openSprints() AND type in (Sub-task).
Why do I need it? Because as a SM, I want to pull that filter on the Team's Dashboard to see who all are assinged with certain sub-tasks by adding a gadget "Pie Chart".