Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-11085

Document Generator export fails when a template uses Links[n].IssuesInEpic and the issue has links to non Epic issues

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Waiting Approval
    • Medium
    • Resolution: Unresolved
    • Xray Cloud 16.24.0
    • None
    • Document Generator
    • None
    • Xray Cloud 16.24.0, Jira Cloud

    • UNCOVERED

    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

      1. 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}
        
      2. Upload it as a Document Generator template
      3. 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

          Activity

            People

              bernardo.cottim Bernardo Cottim
              joao.silva João Silva
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: