I read up
to learn how to customize email html template.
Everything seems to go well except a custome field value with multiple New line which being rendered as single line.
#foreach ($value in $customFieldManager.getCustomFieldObjects($issue))
#set ($eachCustomValue = $issue.getCustomFieldValue($value.getId()))
#set ($chkResult = $stringUtils.contains($eachCustomValue,"\n"))
#set ($chkLength = $stringUtils.length($eachCustomValue))
$eachCustomValue / $chkResult / $chkLength
Verified that the checking of "\n" are false.
Length contain the new line character.
How to split the line to <br/>? Or is there any better way to handle new line character for custom field value?
I also checked the implementation of Comment and Description Field which the html rendering are being taken care by the JIRA engine.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG