Searching for subtasks of parents that meet certain subtask criteria

I want to filter out all issues that has subtasks but of a particular component. The following works but it returns all stories with subtasks.

project = ABCDEF123 AND issuetype in (Story) and issueFunction in hasSubtasks()

I have tried this but it doesn't work, returning nothing

project = ABCDEF123 AND issuetype in (Story) and issueFunction in subtasksOf("component = xyz1234")

So I want JIRA to return all stories with subtasks and the component of that subtask is xyz1234.

I do not want to use any plugins. Hope you can help.

2 answers

This widget could not be displayed.
Thomas Schlegel Community Champion Jun 20, 2017

If you don't want to use any plugin, it won't work.

But you are using plugins already. "issueFunction in ..." is part of the Scriptrunner-Plugin.

Yes, you are right, Scriptrunner is the only one I have. What I meant was that I do not wish to use other plugins such as Craftforge or JQLTricks.

This widget could not be displayed.

Ok, I've worked it out 

project = ABCDDEF123 AND issuetype in (Story) AND issueFunction in linkedIssuesOf("component not in (SubTaskComponent)")

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

286 views 5 0
Join discussion

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