Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-1266

Return last comment as HTML for mail template

    XMLWordPrintableJSON

    Details

    • Critical Points:
      0

      Description

      hello,

      I have made this nice mail template, that calls:

       <% if (componentManager.getCommentManager().getComments(issue)) out << componentManager.getCommentManager().getComments(issue).last()?.body %>
      

      it returns that last comment, but as a one-line string. How can i format it as HTML, so that linebreaks are effected and even tables from jira content will work.
      If I explicitly in the comment enter

      <br>

      , it works using the custom HTML mail template in the script listener, however in JIRA this looks very ugly.

      br
      Thomas

        Attachments

          Activity

            People

            Assignee:
            jechlin Jamie Echlin
            Reporter:
            congo Congo Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: