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

How write JQL to show orphaned sub-tasks

We are using JIRA Datacenter 9.9.0

we recently added a workflow condition that won't all allow a parent user story to be closed if it still has sub-task children associated with it.

 

Is there a JQL query we can run to see if any sub-task children are currently orphaned? We are not having much luck writing such query.

 

Thanks in advance

 

Steve Josue

 

2 answers

1 vote
Laurie Sciutti
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.
Oct 25, 2023

Hey @Steve Josue ~ do you use ScriptRunner?  If so, you could use the following function:

 

issueFunction in subtasksOf(<subquery>)

 

https://docs.adaptavist.com/sr4js/latest/features/jql-functions/included-jql-functions/sub-tasks#subtasksof 

Hi Laurie -

We don't and now I wish we did.

I can't believe how many google results I got that absolutely do not work....

Thanks,

-Steve

0 votes
Danut M [StonikByte]
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.
Oct 25, 2023

Hi @Steve Josue,

What do you mean by an "orphan" sub-tasks? In Jira, every sub-tasks has a parent Story or Task, so you cannot have sub-tasks without a parent task. That's why I am asking...   

One way to do the visualization of stories and sub-tasks would be to use the Work Breakdown Structure (WBS) gadget offered by our Great Gadgets app. It takes the issues from a specified filter and displays them in a tree structure, by their hierarchy, in form of Epics > Stories, Tasks > Sub-tasks.

image.png

All you have to do it to have a filter that returns the issues to be grouped (Stories and sub-tasks in your case) and to configure the gadget to use this filter. Then, it will do the grouping for you.   

Please note that this app offers many other gadgets that you will find useful. Just have a look over the articles from our blog to make an idea. It can be a great asset for your team and company.

I hope this helps. 

Danut 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.9.0
TAGS
AUG Leaders

Atlassian Community Events