Uploaded image for project: 'Xporter for Jira Cloud'
  1. Xporter for Jira Cloud
  2. XPORTERCLOUD-2215

Wiki is failing whenever there is a Issue Key reference

    XporterXMLWordPrintable

Details

    • OK

    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-02-22-123.png
          163 kB
          João Silva
        2. image-2022-05-26-10-02-45-301.png
          5 kB
          João Silva
        3. image-2022-05-26-10-03-10-672.png
          14 kB
          João Silva
        4. image-2022-05-26-10-03-32-569.png
          14 kB
          João Silva
        5. image-2022-05-26-10-03-47-018.png
          7 kB
          João Silva
        6. Screenshot 2022-08-03 at 14.20.41.png
          88 kB
          João Silva
        7. Screenshot 2022-08-03 at 14.20.52.png
          86 kB
          João Silva

        Issue Links

          Activity

            People

              nikhil.diwan Nikhil Diwan
              joao.silva João Silva
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: