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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

134 views 4 5
Read article

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