Forums

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

Find only subtasks from bugs

Claudia
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2018

Hi,

subtasks could be from a task or from a bug. I want to have a filter only for bugs and subtasks from bugs. How can I write a search for subtasks which are only a child from a bug?

Thank you very much.

Best regards.

 

3 answers

5 votes
sudhakar
Contributor
June 18, 2018

Hi

Yes, Its not possible with existing Jira query .

You need to have plugin like" JQL Search Extensions" to have this functionary in the advanced search tab . This plugin works  for both could and server

With simple query can get the results

Query using the plugin  : parentIssueType = Bug(Gives us list of sub-tasks which bugs are the parent issues )

https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/3375124/JQL+Reference+Cloud#JQLReference(Cloud)-SubtaskIssueType

Regards,

Sudhakar

1 vote
Sunil Kumar June 18, 2018

Hi Claudia,

Try this,

issuetype = sub-task AND issueFunction in subtasksOf("issuetype in (task, bug)")

1 vote
Alexey Matveev
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 18, 2018

Hello,

It is not possible out of the box. 

You need a plugin like ScriptRunner to have this functionality. If you use ScriptRunner, then you can use the subtaskOf function:

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_subtasksof

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events