Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-11777

Doc Generator - wiki-rendered field inside template table cell produces extra indentation in generated Word document (Jira v11)

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Xray DC 8.5.4
    • None
    • Document Generator
    • None
    • Xray DC 8.5.4-j11 (reproduced on 8.4.6-j11)
      Jira DC 11.3.12 (reproduced on 11.3.6)

    • Standard
    • UNCOVERED

    Description

      Description

      When using the Xray Document Generator with a template that places a wiki-rendered field variable (e.g. ${wiki:Description}) inside a table cell, the generated Word document contains incorrect indentation on certain paragraphs within that cell. This was not observed on Jira 10.

      Pre-conditions

      • Jira Data Center v11 with Xray installed.
      • At least one Test issue whose Description (or other wiki-rendered field) contains: a heading, a bulleted list, and another heading after the list.
      • A Document Generator template (.docx) with a table containing ${wiki:Description} (or equivalent) in one of its cells.
      • Template entity set to Test; scope set to Issue Details.

      How to reproduce

      1. Create (or use an existing) Test issue with a Description containing: a heading, a bulleted list (3+ items), a second heading below the list, and a plain-text paragraph.
      2. Create a Document Generator template with a 2-column table. In the right cell of a data row, enter ${wiki:Description}. Set entity = Test, scope = Issue Details. Upload the template.
      3. Open the Test issue and click Doc. Generator. Select the template and generate the document.
      4. Open the downloaded .docx and inspect the table cell that rendered the wiki content.

      Actual result/Attachments

      In the wiki-rendered table cell, paragraphs after the bulleted list carry incorrect indentation:

      • All bullet-list paragraphs have an explicit left indent from the list definition leaking as a paragraph indent.
      • The heading that follows the bullet list also receives the same left indent, which is not present on the opening heading and should not be applied to headings inside a table cell.
      • Plain-text paragraphs after the second heading are unaffected.
        The result is visually incorrect indentation on headings and bloated page counts in longer documents (reported: 277 pages → 404 pages).

      Expected result

      Wiki content rendered inside a table cell should produce the same indentation as the same content rendered outside a table cell: list items indented relative to the cell margin, headings with no extra left indent regardless of their position within the cell.

      Version

      • Xray DC 8.5.4-j11 (customer); reproduced on 8.4.6-j11
      • Jira DC 11.3.12 (customer); reproduced on 11.3.6

      Workaround

      None known. Moving the wiki variable outside of a table cell avoids the issue but requires a template redesign.

      Attachments

        Issue Links

          Activity

            People

              joana.fonseca Joana Fonseca
              joao.silva João Silva
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: