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 votes
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
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

454 views 7 5
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