I have a custom field in a project that displays a panel so it quickly draws the eye.
When this field is updated, I have automation that will email this update to certain users, however it doesn't display in the email, it just shows the markup like in the attached image.
The red box is where the Jira Automation rule uses the {{issue.customfield_xxxxx}} smart value to send an email that displays certain information from the issue in HTML format. The rest of the email and smart values display as expected, although this is the only field using the wiki-style renderer.
I'm fine with either of the following options as an end result, but I'm not sure how to get to either of them:
Thank you!
Hi @Ashley Honeycutt - The challenge you're facing is that email is formatted as html while the custom field is formatted with markup. You would need to perform some transformation on the field data to present it the way you want in the email. For example, you could start with something like this:
<div style="background-color: yellow; padding: 10px;">{{issue.update.substringAfter("}").remove(" {panel}")}}</div>
I haven't tried myself, but this should extract just the update itself and place it inside a html which would give it a simple yellow background. Play around with it for the desired result.
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.