A query to get the list of stories which has subtask of type defect.
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.
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")
For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...
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