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

0 vote
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.

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,308 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot