Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Xray documentation generator exporting multiple issues error

Rafael Tomazela Teodoro October 5, 2022

I tried to export multiple issues using the template "Test Execution Advanced with Cover Page" but the error inside the PDF was found, take a look below:

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.lang.Iterable.forEach(Iterable.java:74)
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.plugins.jiraxporter.web.services.impl.ExportServiceImpl.processBulkRequest(ExportServiceImpl.java:232)
at com.xpandit.plugins.jiraxporter.web.services.impl.ExportServiceImpl.handleBulk(ExportServiceImpl.java:208)
at com.xpandit.plugins.jiraxporter.web.services.impl.ExportServiceImpl.access$000(ExportServiceImpl.java:70)
at com.xpandit.plugins.jiraxporter.web.services.impl.ExportServiceImpl$1.run(ExportServiceImpl.java:123)
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)
... 8 more

2 answers

2 accepted

1 vote
Answer accepted
Anouchka Balle
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 14, 2022

Same issue for me for the generation of the documentation of a test plan. 
5 tests cases was linked to this test plan.
In one of these 5 test cases, in its description, the number of another test case was mentionned (ABC-123). But only the text was displayed, not the Jira link. If I modify this reference ABC-123 by something else like ABC - 123, the generation of the documentation works.
No need to clone / move the workitems, the issue will still happen.

Rafael Tomazela Teodoro October 14, 2022

Correct, its happens because he Jira consider as link any task key e.g. ABC-123 between "( )" and as we know now the generation problem occurs always when we use any link in the description task.

1 vote
Answer accepted
Rafael Tomazela Teodoro October 5, 2022

I found the problem, the problem was a link infomed on the description field from the Sub Test Execution issue. So, when you use a Jira task link (e.g.: ABC-123) this error happens. I hope to help the Attlassian developer team with that information.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events