Details
-
Bug
-
Status: Waiting Approval
-
Medium
-
Resolution: Unresolved
-
Xray Cloud 16.24.0
-
None
-
None
-
Xray Cloud 16.24.0, Jira Cloud
Description
Description
When a Document Generator template iterates the Issues in Epic of linked issues (Links[n].IssuesInEpic), the export fails as soon as the exported issue has at least one link to an issue that isn't an Epic. Filtering the links loop by issue type, or wrapping the iteration in an if condition, doesn't avoid the error.
Pre-conditions
- An Epic with at least one child issue
- A Test Plan (or any issue) linked to that Epic and also linked to at least one non Epic issue, for example a Test or a Bug
How to reproduce
- Create a Word template with the following content
#{for k=LinksCount|filter=%{'${Links[k].IssueTypeName}'.equals('Epic')}} Epic: ${Links[k].Key} ${Links[k].Summary} #{for l=Links[k].IssuesInEpicCount} Child: ${Links[k].IssuesInEpic[l].Key} ${Links[k].IssuesInEpic[l].Summary} #{end} #{end} - Upload it as a Document Generator template
- Open the Test Plan from the pre-conditions and export it with this template
Actual result/Attachments
The export fails with "An error occurred while generating your report. Please, contact the support team."
Expected result
The export completes and lists the child issues of each linked Epic. Linked issues excluded by the filter or the if condition are skipped.
Version
- Xray Cloud 16.24.0
- Jira Cloud
Workaround
None known. The export only succeeds when the exported issue is linked to Epics alone.
Attachments
Issue Links
- duplicates
-
XCC-3963 Loading...