Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

give me a query to fetch the stories for a person where in sub-tasks, bugs assigned under stories

Manoj.GG
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 9, 2025

 

give me a query to fetch the stories for a person where in only sub-tasks, bugs assigned to that person under stories

 

im trying fetch the story points for a story by taking the stories list for a person where he is assigned to only subtasks not the story 
so if i fetch the all the stories i callibrate the story points

 

2 answers

1 vote
Manoj Gangwar
Community Champion
April 9, 2025

Hi @Manoj.GG Welcome to the Community!

If you do not have the scriptrunner plugin then you can first fetch sub-tasks or bugs assigned to a user and then manually find their parent stories:

assignee = johndoe AND issuetype in (Sub-task, Bug)

To narrow down to only those where the parent is a Story:

assignee = johndoe AND issuetype in (Sub-task, Bug) AND parent in (issuekey1, issuekey2, ...)

If you have the plugin then you can try below JQL:

issueFunction in parentsOf("assignee = johndoe AND issuetype in (Sub-task, Bug)") 
AND assignee != johndoe AND issuetype = Story
 
0 votes
Charlotte Santos -Appfire-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2025

Hi @Manoj.GG 

I’m Charlotte, a support engineer at Appfire and I’m here to help you.

Unfortunately, natively, you’ll not be able to do it dynamically.

In the app where my team works, JQL Search Extensions for Jira, you can use this query to get stories whose sub-tasks are assigned to a specific user:

issue in parentsOfSubtasksInQuery("assignee=janedoe”) AND type=Story

 Please contact our support if you have any other questions about this query, or the app in general.

We’ll be happy to help you! 😉

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events