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

Error on Service Desk - Ticket Detail Template when exporting a Service Desk request with an Attachment

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Won't Fix
    • None
    • None
    • Jira Service Desk
    • None
    • UNCOVERED

    Description

      Description
      Using the Service Desk - Ticket Detail Store template to export a Service Desk request with an Attachment added on the creation of the request will cause an error on the template, and it will not export any of the mappings. When adding the Attachment after the request is created, the template works normally.

      Pre-conditions
      Add the attachment on the Request creation form.

      How to reproduce

      1. Open Jira Service Desk and create a request where you can add Attachments on the creation page
      2. Add an Attachment and send it
      3. Generate the Service Desk - Ticket Detail template

      Actual result/Attachments
      The template will show the following error, and the mappings aren´t exported.

      We are sorry, an unexpected error has occured in the export of your issue.
      Please provide the information below to our support.
      
      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:130)
      	at com.xpandit.xporter.cloud.engine.service.export.utils.PolledDocumentGenerator.listenToQueue(PolledDocumentGenerator.java:82)
      	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
      It should export the Service Desk ticket information and without any error

      Attachments

        1. AMGTNGSD-33.docx
          138 kB
          Mario Peixoto
        2. image-2022-09-22-09-57-22-843.png
          50 kB
          Mario Peixoto
        3. Service desk issue.gif
          2.79 MB
          Mario Peixoto
        4. Service Desk - Ticket Detail (4).docx
          146 kB
          Mario Peixoto

        Activity

          People

            bernardo.cottim Bernardo Cottim
            mrap Mario Peixoto
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: