How to search only parent issues in JIRA?

Is there a way where we can only search parent issues and not sub-tasks in a project.

For example: If we have 1000 issues in a project out of which 100 are the parent issues and rest 900 are sub-tasks. SO is there a way to search only those 100 parent tasks in JIRA.

2 answers

This widget could not be displayed.

Yes, select by issue type. Use "issuetype = A, B, C" where those three issue types are parent types.

JQL in later versions makes this more easy:

issuetype not in subtaskIssueTypes()

This is not helping me as I have 'Bug' issue type as a parent issue and 'Bug' as a subtask as well.

So its difficult to differentialte parent issues and subtasks on the basis of issue types :)

or "issuetype in standardIssueTypes()"

If you use the function it should not matter if you have Bug as subtask and parent type.

Um.

>as I have 'Bug' issue type as a parent issue and 'Bug' as a subtask as well

No, you don't. Probably. Issue names *must* be unique in Jira. I suspect you've probably got something like "Bug" and "Bug." or " Bug" (note the whitespace). If you have really got two issue types with the same name, then you've hacked something and you really do need to rename them to be unique or you'll run into problems.

The JQL will work, but I'm not sure exactly which version that function arrived in.

Oops, thanks Jamie - I've only ever used "in subtaskType". Should have realised there was a similar one for parent types.

This widget could not be displayed.

If you know the parent issue and the project you can use the following advanced search through JQL:

project = <project KEY> AND parent = <issue KEY>

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

121 views 2 0
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