Forums

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

Inquiry About "for loops" Syntax for Linked and Child Work Items in Xray Templates

Vitalijs
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2025

Hi all,

I’m trying to find clear documentation or examples about how to use for loop structures in Xray Document Generator templates (Jira Cloud).

Specifically, I’d like to understand:

  • How to iterate over Linked Work Items inside a Test Plan

  • Whether it's possible to retrieve Child Work Items, Linked Work Items, or Test Coverage directly from an Epic

  • Or if such data can only be accessed when exporting from specific issue types (like Tests or Test Executions)

 

Any working examples, template snippets, or links to documentation would be highly appreciated!

Thanks in advance!

1 answer

0 votes
Marc - Devoteam
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.
May 22, 2025

Hi @Vitalijs 

Welcome to the community.

Based on the doc you can't use for loop, see https://docs.getxray.app/display/XRAYCLOUD/Document+Generator+and+Xporter+code+snippets#DocumentGeneratorandXportercodesnippets-Iteratingoverinputissues 

Best is to reach out to the Xray support department.

@Sergio Freire - Xblend could you help out in this question?

Suggest an answer

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

Atlassian Community Events