How can I filter all those tasks linked to a story on JIRA board?

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".

2 answers


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.


Thomas Schlegel Community Champion May 30, 2017

Hi UPS, 

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.  

Thanks for your reply Vincent but that query would not give me the desired result what I am looking for or atleast I am expecting to return, instead it gives me the following error;

"No issues were found to match your search
Try modifying your search criteria or creating a new issue"

Thomas Schlegel Community Champion May 30, 2017

So then, let's narrow down your problem. Do you get a result with that JQL:

project = "<your project-name>" and sprint = "<your sprint-name>"?

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"

0 votes

Do you have the Scriptrunner plugin? With that, you can create subqueries.

No Thomas, I dont have that installed. Is that the only way to get the result?

Thomas Schlegel Community Champion May 30, 2017

There may be some other plugins as well, but you can't do such a query with plain Jira.

I see, I tried to installing it but seems like its paid version and I may need to check with my management if they are going to provide it. Thanks though for your response.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,262 views 5 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you