Searching for subtasks of parents that meet certain subtask criteria

Mach June 20, 2017

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
Mach June 22, 2017

Ok, I've worked it out 

project = ABCDDEF123 AND issuetype in (Story) AND issueFunction in linkedIssuesOf("component not in (SubTaskComponent)")
0 votes
Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 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.

Mach June 22, 2017

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.

Suggest an answer

Log in or Sign up to answer