How can I get the parent JIRA by searching the sub-task JIRA

Yi Liang February 5, 2025

Hi All,

I would like to retrieve the parent jiras by searching their subtasks.

For example, I would like to get the list of parent JIRAs whose sub-task is tested.

How can I write the JSQL?

Many Thanks 

2 answers

0 votes
Vishal Biyani
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.
February 5, 2025

@Yi Liang 

if you have access to JIRA Automation, then you can use it to get details in an email.

Example rule

1. Trigger

You could define a trigger based on your need. I have used Manual Trigger for demo purpose.

2. In the Lookup issues, add the JQL as per your requirement.

 

snip.png

Let me know if this is something that works for you

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 5, 2025

Hello @Yi Liang 

With only native Jira searching capabilities you can create a search for the subtasks and display the Parent issue key and summary in the results output.

Screenshot 2025-02-05 at 5.47.49 PM.png

Do you need information from the parent issues besides their key and summary? Only the parent key and summary is available in this manner with native Jira issue search capabilities.

What do you want to do with the output? Depending on what you want to do with the output there may be alternative ways to get the information without using the Jira issue search UI.

If you specifically need to construct and save an issue search filter where the results set is only the parent issues and you can also see other information from the parent issue, that would require a third party app that extends the Jira issue search capabilities.

Some of those app remain Free if you are using a Free Jira subscription. I notice your post tags indicate you are on the Free plan. Would you be willing to consider a third party app, if you requirement is to get a list of only the parent issues and more information about each parent issue?

Yi Liang February 5, 2025

Hi @Trudy Claspill ,

I tried your suggestion, and I got a list of sub-tasks.

I would like to have the output to be the parent jira no, description, reporter, etc., , not the sub-task.

Sometimes, there are multiple sub-tasks pertaining to one parent jira.

Is there any way to make it happen?

Thanks

Liang Yi

 

 

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 5, 2025

As I said in my response...

The initial solution gives a list of subtasks, and you can show the key and summary for the parent issue by adding the Parent column to the output.

With only native functionality you cannot get what you want. It will require a third party app.

Yi Liang February 5, 2025

However, I cannot create a confluence page to show the parent jiras.

I cannot find a proper field on the setup

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events