Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Filter LinkedIssues within LinkedIssues

GiorgosTsav
Contributor
August 8, 2024

Hi Community.

I have this :

fi.jpg

Is it possible to fetch the bugs related to test?

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
August 8, 2024

Hello @GiorgosTsav 

Can you provide more information?

Is the filter you showed not giving you what you want? If so, can you provide details? 

- Is it giving you issue that you don't want?

- Is it not giving you the issues that you do want?

 

If you simply want Bug issues that are linked to Test issue you would use a very similar filter:

issueType=Bug and issueFunction in linkedIssuesOf("issuetype=Test")

GiorgosTsav
Contributor
August 8, 2024

Feature is tested, in case the QA team finds a Bug, then a type Bug issue is created and assigned to DEV within the Test.

So the "hierarchy" is something like : Feature -> Test -> Bug (whenever is needed)

Trudy Claspill
Community Champion
August 9, 2024

Let me check if I understand your goal. 

Based on the first query you provided you want to get all the Features, Product Miss, and Customer requests that are linked to Tests. In addition you want to get all the Bugs linked to the same Tests.

Do I have that correct?

Do you also want to include the Test issues in your results?

Jira does not have a method available to display those results in a hierarchy. Issue linking allows issues to be linked to multiple issues, and that is not a structure that can be displayed in a simple hierarchy.

If you have a Jira subscription that includes Advanced Roadmaps Plans then you could display the results as a dependency tree, possibly.

GiorgosTsav
Contributor
August 9, 2024

Let's put aside the word hierarchy. I do have this -> issuetype in (Feature, "Product Miss") AND issueFunction in linkedIssuesOf("type = test"). There are 2 scenarios :

1. Test = passed. All good.

2. Test = Failed. The QA team finds a bug. As a result an issue type of Bug will be created.

So what i want to achieve is the above : issuetype in (Feature, "Product Miss") AND issueFunction in linkedIssuesOf("type = test") plus a statement to get Features etc which have a Bug created, but not directly, through Test type.

The purpose is to get Features or Product Misses for which we have reported bugs.

Hope is more clear now.

Thank you.

Trudy Claspill
Community Champion
August 9, 2024

So, you need to find the Tests that have linked bugs.

issuetype=Test and issueFunction in linkedIssuesOf('type=Bug')

Then you want to find the Feature and Product Miss issue types linked to those Tests.

issuetype in (Feature, "Product Miss") AND issueFunction in linkedIssuesOf("issuetype=Test and issueFunction in linkedIssuesOf('type=Bug')")

ScriptRunner Enhanced Search kept giving me an error when I tried to nest the linkedIssuesOf function in that manner. So I tried saving the first filter as Tests linked to Bugs. Then in the second filter I used:

issuetype in (Feature, "Product Miss") AND issueFunction in linkedIssuesOf("filter='Tests linked to Bugs'")

GiorgosTsav
Contributor
August 18, 2024

Got the result was looking for.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events