Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Find specific sub-tasks of a task linked to a story

I have a story with a status of done. To that story I have a linked task. That task has sub-tasks. I want to pull all of the sub-tasks that are 'to do' or 'in progress' belonging to the Task (with a specific summary detail) associated to the story that is Done. See the picture below:


Story to LinkedTaks to SubTask of LinkedTask.png

2 answers

1 accepted

2 votes
Answer accepted
Mohamed Adel Community Leader Jun 02, 2021

Hi @Raymond Touchette  

Welcome to the community, I see here 2 options 

First : You can try to create a filter inside a filter like here

Second : I recommend to use JQL Search Extensions. It's a professional paid indexing service provided by a company I've partnered with.

You can use the following query to finds the list of subtasks of resulting parent issues and for more reference

issue in subtasksOfParentsInQuery("status='Done'") AND linkedIssueType = Story 

Thanks in Advance
Mohamed Adel 

Thank you for your response! Not always able to get on-line. I am not following the suggestion.

The story has a linked Jira Type Task - that Task has sub-tasks... Attempting to find a specific sub-task with a specific state of the task linked to a specific story.

The story has sub-tasks that are complete and the story is complete...but the linked Jira Type Task has sub-tasks that may/or may not be complete...

Any help on the actual query to perform the steps getting to the results describe in the initial post - most appreciated!

I Actually got it!.. I am very new to JIRA and JQL - but I did manage to figured it out.

get criteria of sub-task of Task And IssueFunction in subtasksOf(Type = Task AND issueFunction IN LinkedIssuesOf(type = Story AND remaining filter)....

Of course this is the abbreviated function to address the various parameters are not completely represented.

It is thinking about the Grandchild to Child to Parent from a function perspective.

Thank you!!!

Like Laura Holton likes this
0 votes

Hi @Raymond Touchette 

Can I confirm:

  • Is this Jira Cloud or Server?
  • How do you want to pull the data - eg. API, JQL, etc?
  • If JQL, do you have any apps which extend JQL?


Hi, We should have CLoud and ScriptRunner... Want to pull the data via JQL.. Thank you!

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked in Atlassian Cloud Migration

AMA with Chris Clarke: Head of Product, Migration Journey

Happy  Migrations Month ! If you haven’t heard, this January we’re hosting exclusive events, giving away cloudies, and sharing helpful resources as part of our #CountdownToCloud celebration. H...

500 views 7 15
View question

Community Events

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

Events near you