Hi Community,
I have written a rule where in I am sending mail to assignee with details present in Description field. The field includes some text and some links.
When I try sending it with {{issue.description.html}} it contains line gaps, to reduce those gaps I used {{issue.description.trim.htmlEncode}} but the problem here is the links that are present in description are now shown as simple text.
Can you please suggest me any alternate way to achieve my requirement i.e. "Send mail with test and links present in description field without extra spaces."
Output:-
Have you confirmed if your original Description field contains the extra line breaks, or if the html is adding them?
If they are embedded in the field, you could use replace() or replaceAll() to check for any extra line breaks, such as converting "\n\n" to "\n"
If it is from the html, perhaps convert and write that to the audit log to determine what markup is being produced.
Kind regards,
Bill
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.