JQL Tricks plugin has a method to do this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think this jql would work
parent in issueHistory()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it shows the sub-task but I want to find the parent issues
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, my bad. I misunderstood your question. I guess you need anothre logical layer that you cant get directly using jql.
Have a look at the simplest report plugin in the tutorial. You only have to add another condition to only return those issues that have sub-tasks (check using issue.getSubTaskObjects()).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Take a look at the SingleLevelGroupByReportExtended
https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Creating+a+JIRA+Report
Basically, you need to filter out those issues that have sub-tasks. You could for instance add
#if($issue.getSubTaskObjects().size()>0) to your velocity view when looping issues to only display issues that have sub-tasks.
On the other hand, you might as well create a new report from scratch since it is quite simple.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.