Description field doesn't escape the special character with XML syntax in JELLY

XMLWordPrintable

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      The description field doesn't escape the special character (e.g. & , < , > , ' , " ) even with the XML Syntax as shown as below in the JELLY scripts with the Default Text Renderer in the Field Configuration.

      &amp; 
      &gt; 
      &lt; 
      &apos; 
      &quot; 
      

      Sample of JELLY Scripts for replication:

      <JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:log="jelly:log">
      <core:set var="description">
      This is some text
      This line has a greater-than > in the middle
      This line has a greater-than at the end >
      >This line has a greater-than at the start
      This line has an amper &gt; in the middle
      This line has an amper at the end &gt;
      &gt;This line has an amper at the start
      </core:set>
      <jira:CreateIssue duplicateSummary="ignore" summary="xml test 1" description="${description}" project-key="TST" issueType="Bug"  reporter="admin" assignee="admin" />
      </JiraJelly>
      

      The result will display as screenshot-1

        1. screenshot-1.JPG
          19 kB
          Chai Ying Chan [Atlassian]

            Assignee:
            Unassigned
            Reporter:
            Chai Ying Chan [Atlassian]
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: