HTML tags are still visible after changing changelog.vm

Hi I tried the suggested resolution on http://jiraeditor.com/docs/

in order to get rid of the HTML tags in emails regarding changes in issues.

But when the lines:

#set ($oldText = $velocityhelper.getPrettyFieldString($changeitem.getString(“field”), $changeitem.getString($oldstringKey), $i18n, “”))
#set ($newText = $velocityhelper.getPrettyFieldString($changeitem.getString(“field”), $changeitem.getString($newstringKey), $i18n, “”))
$!diffutils.diff($oldText, “background-color:${auiErrorBackgroundColour};text-decoration:line-through;”, $newText, “background-color:${auiSuccessBackgroundColour};”)

are replaced with:

#if ($changeitem.getString(“field”) == “description” || $changeitem.getString(“field”) == “Comment”)
#if ($changeitem.getString($newstringKey)) $changeitem.getString($newstringKey)
#else Empty
#end
#else
#set ($oldText = “”) #set ($newText = “”)
#set ($oldText = $velocityhelper.getPrettyFieldString($changeitem.getString(“field”), $changeitem.getString($oldstringKey), $i18n, “”))
#set ($newText = $velocityhelper.getPrettyFieldString($changeitem.getString(“field”), $changeitem.getString($newstringKey), $i18n, “”))
$!diffutils.diff($oldText, “background-color:${auiErrorBackgroundColour};text-decoration:line-through;”, $newText, “background-color:${auiSuccessBackgroundColour};”)
#end

There are a lot of errors in the received emails.

Any ideas?

2 answers

1 accepted

0 votes
Accepted answer

"" “”

This was the problem, the different between symbols - different quotation marks. :)

Hi Todor,

We have fixed the quotes. Thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

336 views 0 1
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you