Details
-
Bug
-
Status: Closed
-
Medium
-
Resolution: Won't Fix
-
None
-
None
-
None
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
- Open Jira Service Desk and create a request where you can add Attachments on the creation page
- Add an Attachment and send it
- 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