Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Formatting HTML emails to match JIRA's commenting formatting? Edited

Hi, I am leveraging the new Project Automation in Jira Service Desk Cloud, and ran into a problem when configuring the HTML email reply template.

 

There is a smart value that allows me to do {{comment.htmlEncode}} but it does not format the email with the differences that are made when comment is made.

Please see photos attached for example. Is there any way to circumvent this and get our replies showing exactly how JIRA prints them out in the ticket view?

 

Broken formatting:

formatting1.png

 

 

Formatting given by Service Desk

formatting2.png

1 answer

0 votes
Dave Liao Community Leader Aug 25, 2020

@CS - hi Connor! Try encasing your HTML content in a div tag, and use the same class JSD notifications use? Example: 

<div class="jsd-message-content">
    your <b>cool</b> HTML here
</div>

Thanks for the suggestion, Little late seeing this but I tried applying it to our email template and still got similar results:   :(
I'm going to try learning regex and maybe I can just tag on a few .replaceAll functions in the template I guess. Was super excited that JIRA might be able to import that formatting but I don't think that's the case.

Please please let me know if you have any other ideas though! Thanks again5MuKZZDqQf60OMqz4tdqHQ

Like Dave Liao likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

148 views 0 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you