Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,839
Community Members
 
Community Events
184
Community Groups

Show all sub-tasks for a specific Issue Type

Edited

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

3 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.
Sep 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!
Jan 09, 2023

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

parent = PC-XXXX ORDER BY status DESC, rank

Try this:

issueFunction in subtasksOf("\"Type\"=Story")
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.
Sep 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

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

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

It works for me. 

Like 3digits - Desarrollo likes this

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

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

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.  

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