Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-8975

Document Generator is not exporting custom fields that have text quote ' on it

    XporterXMLWordPrintable

Details

    • Xray 2024 S3, Xray 2024 S4
    • UNCOVERED

    Description

      Description
      Document Generator is not exporting custom fields that have text with quote ' on it.
      The use of " is supported.

      Pre-conditions
      Add the following data to the description field:

      asd'
      

      And create template with this code:

      #{if (%{‘${Description}’.equals('')})}
      None
      #{end}
      #{if (%{!’${Description}’.equals('')})}
      ${wiki:Description}
      #{end}
      
      -----------
      #{if (%{"${Description}".equals('')})}
      None
      #{end}
      #{if (%{!"${Description}".equals('')})}
      ${wiki:Description}
      #{end}
      
      

      How to reproduce

      1. Run the template

      Actual result/Attachments
      No data is being generated when mapping the field with '${Description}', with "${Description}" works!

      Expected result
      Expected to generate the data of the field for any of the quotes surrounding the mapping

      Version
      Tested with the version of the client and the latest (6.3.2)

      Attachments

        Activity

          People

            julio.goncalves@sngular.com Júlio Gonçalves
            lpss Luis Sousa
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: