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

Wiki is failing whenever there is an Issue Key reference

    XporterXMLWordPrintable

Details

    • XRAYCLOUD 2024 Sprint 6

    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. screenshot-1.png
          15 kB
          Ana Teixeira
        2. screenshot-2.png
          5 kB
          Ana Teixeira
        3. screenshot-3.png
          282 kB
          Ana Teixeira
        4. screenshot-4.png
          282 kB
          Ana Teixeira
        5. screenshot-5.png
          15 kB
          Ana Teixeira
        6. screenshot-6.png
          8 kB
          Ana Teixeira

        Issue Links

          Activity

            People

              eduardo.eiras@sngular.com Eduardo Eiras
              amgt Ana Teixeira
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: