Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

jql query

Loretta June 24, 2020

I am trying to get issues for a project that have child issues instead of bugs.  What do I need to do to get this?  I think it may be a jql query, but not sure and what the query would be.

3 answers

2 accepted

1 vote
Answer accepted
Jack Nolddor _Sweet Bananas_
Atlassian Partner
June 24, 2020

Hi,

Sadly you cannot achieve the desired search using standard features on Jira, you must go for a third-party app instead. If you are on Server/DetaCenter, using i.e. JQL Booster Pack you can type the following:

 

1) Search for issue on project 'MyProject' having subtasks:

project = MyProject AND issue IN hasSubtasks() 

(*) Note that this is just an example, you must tune above query to fit your needs.

 

Using this app you can also query other issues relations, check:

 

References:

Kind Regards

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 24, 2020

Hi @Loretta 

You cannot do this with out-of-the-box JIRA.  The closest you can get is to list the items and sort by the ones which have subtasks (you cannot search the subtasks field):

project = myproject ORDER BY subtasks

If you have any of the add-on marketplace scripting tools, you can build a query to do what you want.

Best regards,

Bill

0 votes
Ziad Bakhiet
Contributor
October 13, 2020

Hello Loretta,

You can get the result using JQL Search Extensions

You can search for issues that have subtasks with a particular issue type.

  • JIRA Cloud: subtaskIssueType = "YourSubtaskName"
  • JIRA Server: issue in subTaskType("YourSubtaskName")

There are many other functions related to subtasks like:

The full documentation can be found here.

Regards,

Ziad

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events