Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Looking for a jql filter to list all parent tasks that the current user is assigned to child task

Looking for a jql filter to list all parent tasks that the current user is assigned to child task

John Hamman
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!
August 14, 2024

Hi all, I am trying to figure out the jql statement that will list parent tasks that have the current user as either an assignee or have the current user the assignee as a sub task.

Is this possible?

3 answers

0 votes
Emrys
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 30, 2025

Hi John,
I had a similar requirement but wanted for all users and used:
project = someProject AND (issuetype in subTaskIssueTypes() OR issueFunction in hasSubtasks()) ORDER BY priority DESC, updated DESC

0 votes
Prosper Agwegiokhe
Contributor
August 14, 2024

Hi @John Hamman,

My name is Prosper, a support engineer at Appfire, and I’m here to help you.

As @Samuel Gatica _ServiceRocket_ as said, unfortunately natively, you’ll not be able to do get your desired result.

In the app where my team works, JQL Search Extensions for Jira, you can use the query below to find parent tasks assigned to the current user or find tasks were a sub task is assigned to the current user:

issue in parentsOfIssuesInQuery("assignee=currentUser()")

Please contact our support if you have any other questions about this query.

We’ll be happy to help you!

Best regards,
Prosper.

0 votes
Samuel Gatica _ServiceRocket_
Community Champion
August 14, 2024

Hi @John Hamman 

Welcome to the community!

Unfortunately, the desired query cannot be accomplished using native JQL.

You will need to install a third-party add-on, such as Script runner, and then you can execute the following JQL:

assignee = currentUser() AND issueFunction in parentsOf("assignee = currentUser()")

Explanation:

  • assignee = currentUser(): This part of the query filters tasks where the current user is the assignee.
  • issueFunction in parentsOf("assignee = currentUser()"): This part of the query finds all parent tasks that have at least one sub-task assigned to the current user.

By combining these two conditions, the query lists the parent tasks that either have the current user as the assignee or have sub-tasks where the current user is the assignee.

 

Hope this helps!

Best regards

Sam

John Hamman
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!
August 14, 2024

Thanks Sam!

meredith.poole
February 11, 2025

Hi Sam! What if I wanted to be able to do this same thing, but with dynamic selection on a dashboard? Like if I wanted to select a user from a Rich Filter Controller in a Jira Dashboard, and return the parent tasks that have the user as the assignee on either the parent task or the sub task. 

Suggest an answer

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

Atlassian Community Events