Need query to get list of issues, which are linked to a issue and sub tasks of that issue

Example: I have a issue JIRA - 100. The linked issue is JIRA - 101 and sub task issues are JIRA - 105, JIRA - 109, ETC...

How to get all these issues through query

1 answer

parent = "ISSUEID" or issue in linkedIssues("ISSUEID")

 

the linkedIssues function finds all issues linked to the specified issue (https://confluence.atlassian.com/display/AOD/Advanced+Searching+Functions#AdvancedSearchingFunctions-linkedIssues())

Hi, Thank You. It's help full to me. I have one more question that can we write a query to get list of parent issues, i would like to get list of parent issues. if any issue doesn't have sub task that may be the parent? Please answer if it is possible.

You can do something like this: issuetype in standardIssueTypes() That will return all issues that can be a parent (wether they have a sub task or not) If you want to search for subtashs only, you can do issuetype in subTaskIssueTypes() Here's the full documentation on issue searching: https://confluence.atlassian.com/display/JIRA/Searching+for+Issues

I understood well thank you...

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,906 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot