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".
You should try this :
project = "XYZ Advisor Project" AND "Team (XYZ)" = "Team Blue" AND Sprint="name of your sprint" AND type = Sub-task
This filter gives you all subtasks that exist in the sprint. Then you save it with a name, and select it in your gadget.
If you want to have stories too, just change
type = Sub-task
type IN (Sub-task, Story)
Hope this will help.
Vincent is right, I was confused by the words "linked to User Stories", so I gave you a wrong answer. Sorry for that.
I think, all of your subtasks are subtasks to stories, right? Then you don't need subqueries just to get all sub-tasks in a sprint.
First thing, check the names you put. Many times, a filter returns nothing because the specified names were wrong.
Then, are you sure that you have Sub-tasks ? Sometimes, when I try to create sub-tasks, the default type is Action - even though I clicked "add sub-task". So, this might look silly, but check that, just in case.
You could also try to extend the perimeter of the search by removing the "team statement" and the "sprint statement". This might show all of the Sub-tasks that exist in your project. (Edit : that's almost what Thomas told you to do)
Now, I'm going to reconsider the query :
project = "XYZ Advisor Project"
Unless the project name is wrong, nothing to change here.
type = Sub-task
Nothing to change here either.
Sprint="name of your sprint"
Just check the Sprint name.
"Team (XYZ)" = "Team Blue"
This one is troubling. To me, it looks like you're comparing two values. I guess you're using the custom field "team". As I don't work with it, I can't really help with this, but I'm pretty sure that the statement would be something like this :
team = "Team Blue"
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events