Forums

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

Jira Structure View as Test Repository View

Segev Grotas
June 13, 2022

Hello,

Is there any way to set the Structure View as Test Repository view?

It means that the Structure view would be ordered by the folders that in the Test Repository.

 

Thanks you :)

3 answers

0 votes
Zachary Sharpe
June 3, 2026

Hi everyone,

 I wanted to share a workaround I recently put together for recreating the nested Xray Test Repository folder hierarchy inside Jira Structure.

 If you are on Jira Cloud or a newer version of Data Center, Structure has a native "Group by Xray Test Repository" generator. However, on older Data Center environments, that generator is either missing or doesn't work correctly. Furthermore, standard grouping just clumps the entire path together into one long string (e.g., /Folder1/Folder2/Folder3) instead of creating a clickable, nested hierarchy.

 After a lot of trial and error with S-JQL and Expr functions that threw syntax errors (like MATCH, FIND, or modern array sizing), here is the legacy-safe method to build the folder tree manually.

 The Solution: Stacked Formula Generators

 To create the hierarchy, you cannot use a single grouping rule. You must use a technique called "Generator Stacking." You create a separate "Group by Formula" generator for each level of your folder depth, stacked one on top of the other in your Structure Automation panel.

 We use the SPLIT function to break the path into a list, SUBARRAY to isolate the specific level, and FIRST to extract the clean text without any parentheses ().

 The Step-by-Step Setup

 In your Structure, click + Automation -> Group -> Formula, and add the following formulas in order from top to bottom.

 

 Folder Level 1:

(Note: We start the subarray at index 1 to skip the blank space created by the leading slash in the Xray path).

 WITH TR_Array = SPLIT(Test_Repository_Path, "/\\//") :
WITH TR_SA = SUBARRAY(TR_Array, 1, 2) :
FIRST(TR_SA)

 Folder Level 2:

 WITH TR_Array = SPLIT(Test_Repository_Path, "/\\//") :
WITH TR_SA = SUBARRAY(TR_Array, 2, 3) :
FIRST(TR_SA)

 

(You can continue adding generators and increasing the SUBARRAY numbers by 1 for as deep as your repository goes).

 A Note on "No Value" Folders:

Because legacy Structure formula engines don't handle empty array indexes gracefully, you will likely see a "(No value)" folder at the bottom of your tree for tests that have shorter paths.

 While not visually perfect, this method guarantees that your tests will drop into the correct, deeply-nested Xray folders (like Integration -> AIC) alongside any sibling sub-folders. This allows you to organize and view tests exactly as you would in the Xray app.

 Hope this saves someone else the headache of dealing with unsupported syntax errors!

0 votes
Zachary Sharpe
June 3, 2026

deleted

0 votes
David Niro
Atlassian Partner
June 14, 2022

Hello @Segev Grotas ,

David from ALM Works here.  Welcome to the Community!

It sounds like you are using Structure - Flexible Jira Project Management.  If this is the case, could you share how your hierarchy is set up and what it consists of?

It would also be helpful to understand where the Test Repository is coming from and where else you are able to see / identify the folders in Jira.

Looking forward to your response!

Best,
David

Segev Grotas
June 26, 2022

Hey, Sorry for the delay,

I'm using test repository plugin, so the folder that I talked about are folder that I created. they are not Jira Issues.

I sorted the Test in the Test Repository by myself,  and now I want to see that on my Structure - Every test under the folder that it Associated with.

Dave Rosenlund _Trundl_
Community Champion
June 27, 2022

Hi, @Segev Grotas. Can you be more specific about the "test repository" plug in you are using?

Xray, perhaps? Or maybe Zephyr Scale? Something else?

This info. will help us provide you with the best answer.

-dave

Segev Grotas
July 1, 2022

Hi @David Niroand @Dave Rosenlund _Trundl_  ,

Yes, I'm using Xray 

Kathryn Vargas _Tempo_
Community Champion
July 6, 2022

Hi @Segev Grotas,

There is an Xray integration with Structure, but I'm afraid the desired behavior you described is not supported by the current integration.

We hope the Recommended Setups and Using Structure vs Test Repository/Test Plan Board sections of the guide might be of help.

Best,
Kathryn

Suggest an answer

Log in or Sign up to answer