Show all sub-tasks for a specific Issue Type

Nick Wheeler
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!
September 25, 2020

Hi,

I am trying to write a basic JQL query to show all sub-tasks under a particular issue type. Been trying to work it out by googling, but not managing. So far I have ...

project="Operational ERP" AND issuetype=Sub-task AND issue in parent("issuetype=story")

I am using a custom issue type, not Story, but changed to align to a standard type for testing.

Please note

  • Needs to work on Jira Cloud
  • Want to do with standard JQL query and not install an add-in to achieve the required result

Thanks in advance for any help!!

Nick

4 answers

1 accepted

1 vote
Answer accepted
Muhammad Ramzan(Atlassian Certified Master)
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.
September 25, 2020

You cannot achieve this without using a third party plugin. I can suggest you ScriptRunner or  JQL Search Extensions for Jira & reports 

 

Scriptrunner is more expensive than JQL Search Extensions for Jira & reports  after 25 users.

 

Here is the example how to get all sub tasks belongs to issue type story using  JQL Search Extensions for Jira & reports 

 

issue in subtaskOf("type= Story")
varun.kumar
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!
January 9, 2023

I guess  following would be enough to get all the sub tasks of a story

parent = PC-XXXX ORDER BY status DESC, rank

3 votes
Mystic Lin April 13, 2021

Try this:

issueFunction in subtasksOf("\"Type\"=Story")
1 vote
Sayan Kaiser October 30, 2023

This worked for me issueFunction in subtasksOf("type='Issuetype'")

0 votes
Mariana_Pryshliak_Saasjet
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
September 25, 2020

Hello @Nick Wheeler 

You can find an answer to your question in this discussion:

https://community.atlassian.com/t5/Advanced-Roadmaps-questions/How-can-I-filter-for-sub-tasks-of-a-specific-issue-type/qaq-p/1333444

I hope it helps.

Best regards, Mariana

Nick Wheeler
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!
September 25, 2020

Thanks - so you can't do it without an add-on?

Mystic Lin April 13, 2021
issueFunction in subtasksOf("\"Type\"=Story")

It works for me. 

Like desarrollo likes this
Lara Krefski April 21, 2021

@Mystic Lin Isn't subtasksOf only available through use of a plugin?

Mystic Lin April 25, 2021

Indeed, I think that's a feature of ScriptRunner.

Angie Affolter November 16, 2022
issueFunction in subtasksOf("\"Type\"=Story")

That works for single named issue types, but how do I specifiy an issue type that's two words??  I've tried everything I can think of and it's not working.  

Muhi Khair
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!
March 10, 2023

Does it work on cloud: 

issueFunction in subtasksOf("\"Type\"=Story")

I get this message in Cloud

The "subtasksOf" JQL function provided by "Adaptavist Scriptrunner" for Jira Server works differently in Jira Cloud. Run it directly in "Enhanced Search" instead. See the documentation for more details: https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-jql-keywords-functions 

and the link doesn't work

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events