Create
cancel
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

I am new to JQL and want a query to get the list of stories which has subtask of type defect

A query to get the list of stories which has subtask of type defect.

 

For example 

Story 1 has two defect type sub task.

Story 2 has no defect type sub task

Story 3 has some defect type sub task

 

So I want to have a query where i can get story 1 and story 3 which has sub task of type defect.

1 answer

0 votes

Hi @Narasimha Neelam

You'll need to nest a search within a search - this isn't usually possible based on normal JQL functions because when searching for parents / links it often limits it to one specific issue.

An alternative is to use a script application such as ScriptRunner - then you could do:

issueFunction in parentsOf("issuetype = Defect")

Ste

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

153 views 1 5
Read article

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