'Jira jql query to filter issues which has child issue in it

I am in a situation where I have a Basic JQL i.e.

issueKey in (JIRA-1,JIRA-2,...JIRA-1000)

I would like to add a AND condition and filter out the only issues which has Child issues within

Expected Output - If JIRA-1,JIRA-2 only has child issues so the query should return JIRA-1 and JIRA-2 out of issue keys

Why this is needed - In long running project backlog I want to get issue filter to not to miss the child issues to be prioritised



Solution 1:[1]

I assume this is because your project is at a too high level since subtasks are usually just for developers to break down their work.

It also sounds that you are not prioritizing properly since you have the need to look below the user stories.

If you have the need to focus on subtasks inside a 3-week user story I suggest you break them out, so you can prioritize properly.

You can just sort on subtasks and prioritize them separately if you like?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jimi Wikman