Uploaded image for project: 'Xporter for Jira'
  1. Xporter for Jira
  2. XPORTER-2006

Custom fields on header and footer are not exported unless the template has a table

    XporterXMLWordPrintable

Details

    Description

      If you try to export a custom field (in this case text fields) on footer or header, they are empty unless you insert a table on your template. Also, in both cases, an error is shown on logs.

      /plugins/servlet/jiraxporter [c.x.j.c.d.b.i.a.w.replacer.processor.FieldProcessor] Error replacing field value: Cannot remove because there is no parent.
      java.lang.IllegalStateException: Cannot remove because there is no parent.
              at com.aspose.words.Node.remove(Unknown Source)
              at com.aspose.words.zz0R.zzZ(Unknown Source)
              at com.aspose.words.zz0R.zzZVt(Unknown Source)
              at com.aspose.words.Range.replace(Unknown Source)
              at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.FieldProcessor.process(FieldProcessor.java:71)
              at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.ParagraphProcessor.processNode(ParagraphProcessor.java:335)
              at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.word.replacer.processor.ParagraphProcessor.getNodeProcessingValue(ParagraphProcessor.java:151)
      

      Attachments

        Activity

          People

            rmbr Rui Rodrigues
            fcri fcri
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 40 minutes
                40m