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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

JQL Filter to return one subtask based on status of another subtask

Alex Cumberland
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.
Apr 25, 2023

Sciptrunner version:  7.11

JIRA Server: 9.6.0

One of my users is trying to set up a filter to be used on a dashboard where they need to show the subtasks in one status but only if the second subtask is closed or resolved.  Both subtasks would be under the same parent.

  • Parent
    • SubTask1 - open
    • SubTask2 - closed

So in this instance the filter would return  SubTask1 as it is open and due to SubTask2 being closed

  • Parent
    • SubTask1 - open
    • SubTask2 - open

In this instance it would not return SubTask1 since SubTask2 is still open.


I have tried variations of subtasksOF and parentsOF... but can not figure out how to use SubTask2 as the condition to display SubTask1.


Any help would be appreciated and thanks in advance....




1 answer

@Alex Cumberland 

I have used scriptrunner for server in the past and haven't used it recently. Can you check if the following query work?

issueFunction in parentsOf("project = ABC and issuetype=Sub-task and status = open") and issueFunction in parentsOf("project = ABC and issuetype=Sub-task and status = Closed")



Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events