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

Wiki is failing whenever there is an Issue Key reference

    XporterXMLWordPrintable

Details

    • XRAYCLOUD 2022 Sprint 17, XRAYCLOUD 2022 Sprint 18

    Description

      Description
      Wiki Markup fails whenever there is an Issue Key reference in a Text Custom Field.

      Pre-conditions
      Reference an EXISTING issue key without quotation marks:

      How to reproduce
      Export the Custom Field using Wiki:

      Actual result/Attachments
      The file is exported with an error:

      General Exception: java.lang.RuntimeException:
      java.lang.IllegalStateException: Invalid document model. Operation can not be completed.
      java.lang.RuntimeException: java.lang.IllegalStateException: Invalid document model. Operation can not be completed.
      at com.aspose.words.FieldCollection$zzZ.zzZoA(Unknown Source)
      at com.aspose.words.FieldCollection$zzZ.next(Unknown Source)
      at java.base/java.lang.Iterable.forEach(Unknown Source)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.AsposeWordConverter.processFieldLinks(AsposeWordConverter.java:473)
      at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.AsposeWordConverter.convert(AsposeWordConverter.java:372)
      at com.xpandit.xporter.cloud.engine.service.export.service.impl.ExportServiceImpl.handleExport(ExportServiceImpl.java:219)
      at com.xpandit.xporter.cloud.engine.service.export.service.impl.ExportServiceImpl.export(ExportServiceImpl.java:154)
      at com.xpandit.xporter.cloud.engine.service.export.utils.PolledDocumentGenerator.generateDocument(PolledDocumentGenerator.java:118)
      at com.xpandit.xporter.cloud.engine.service.export.utils.PolledDocumentGenerator.listenToQueue(PolledDocumentGenerator.java:77)
      at com.xpandit.xporter.cloud.engine.service.export.Export.main(Export.java:70)
      Caused by: java.lang.IllegalStateException: Invalid document model. Operation can not be completed.
      at com.aspose.words.zzZX5.zzZpF(Unknown Source)
      at com.aspose.words.zzZX5.zzZ(Unknown Source)
      at com.aspose.words.zzZX5.zzV(Unknown Source)
      at com.aspose.words.zzZX5.zzW(Unknown Source)
      at com.aspose.words.FieldChar.getField(Unknown Source)
      at com.aspose.words.FieldCollection$zzZ.zzZoA(Unknown Source)
      ... 9 more
      

      Expected result
      The report is exported without issues.

       

      Current Workaround

      If the Wiki Markup is strictly necessary, mention the key using quotation marks/double-quotes.

      If not, just map the field without the Wiki Markup.
       

       

       

      Attachments

        1. image-2022-05-26-10-03-47-018.png
          7 kB
          Ana Teixeira
        2. image-2022-05-26-10-03-32-569.png
          14 kB
          Ana Teixeira
        3. image-2022-05-26-10-03-10-672.png
          14 kB
          Ana Teixeira
        4. image-2022-05-26-10-02-45-301.png
          5 kB
          Ana Teixeira
        5. image-2022-05-26-10-02-22-123.png
          163 kB
          Ana Teixeira

        Issue Links

          Activity

            People

              afpc Andreia Costa
              amgt Ana Teixeira
              Votes:
              6 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: