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

JQL query with only bug type linked issue

Need help with a query which can fetch "user story" type issues. However, linked issues field should only contain bug type issues ( by default, I see all linked issues irrespective of their type )

4 answers

1 vote
mauricio.groth
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.
Sep 09, 2022

Hi @Siddhant Jain 

As you're on Jira Cloud, the correct answer is to get an app that provides JQL extensions you're looking for.


With standard JQL, you can only get a list of issues and export them to Excel for further processing. This works if you want to do a one-off analysis. If your use case is more dynamic than that, look beyond standard Jira.

Standard JQL doesn't easily allow it, but you can quickly find the results using our professional indexing service JQL Search Extensions

You can use this query to find all your users stories that are linked with a bug.

issue in linkedIssuesOfQuery("issuetype = bug") and issuetype = 'user story'

Check out the documentation for more examples.

If you have any other questions, please contact our support. We’ll be happy to help you!
Best regards,
Maurício

Hi, Thanks for answering my query.

I have built a query and it gives me all user stories which has at least one bug linked. However, I want "link column" to show only "bug type" issue & not any other types of issue. Alternatively, a column which tells count of bug for each user story might also be helpful. 

Can you please paste your JQL (as on Sep 12,2022).

@Siddhant Jain 

0 votes
Rahul_RVS_Support
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Sep 09, 2022 • edited

Hi @Siddhant Jain 

Welcome to the community !!

For a readymade solution, you can try out our add-on

Issue Hierarchy Reports 

You can filter linked child issue types.

Additionally you also get complete hierarchy of your issues and sum up at each hierarchy level too.

Links HIerarchy_Additional Criteria.PNG

0 votes
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 09, 2022

@Siddhant Jain  If you don't have Scriptrunner or JQL search Extension plugin , you need to check this post, workaround provided by Atlassian team member to get linked issue based on Issue type  :- https://community.atlassian.com/t5/Jira-Core-Server-questions/How-to-get-issues-type-Story-that-are-linked-to-other-issues/qaq-p/1388073

Thanks

Hi @Siddhant Jain ,

Kindly refer the link: https://community.atlassian.com

Regards, 
Dhanush

Suggest an answer

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

Atlassian Community Events