Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Convert markdown in description to html for email Edited

Using Automation for Jira Cloud, I am trying to convert the description field of my Jira issue, which uses standard wiki markdown to format a list, into a properly formated unordered list to include in an html formatted email.

 

Here is an example of the list formatted in the description field using wiki markdown.

markdown.PNG

 

Here is the rule where you can see that I've tried using the "htmlEncode" smart value to change the formatting:

email_rule.PNG

Here is the output I get:

output.PNG

 

But I don't know what to do with that output in an email to get a properly formatted list. When I put that into an email, it is displayed without line breaks or bullets - and if I don't include the "htmlEncode" function, it looks the same in my email client (Office 365 Outlook).

I'm guessing that I would need to convert the html encoded values to the appropriate <ul> tag, but that's where I'm stuck. Can anyone help, please?

2 answers

1 accepted

0 votes
Answer accepted

Hey there Paul,

I think what you're after is just .html see https://docs.automationforjira.com/issues/dealing-with-markup.html#rendering-html

So you should be able to just do: (no need to wrap it around the <p> tag either:

{{issue.description.html}}

That did it! Thanks @Mark Chaimungkalanont I don't know how I missed that in the documentation.

Hi,

I'm having exactly the same issue as Paul, however unfortunately following the instructions in https://docs.automationforjira.com/issues/dealing-with-markup.html#rendering-html did not solve the problem for me.

My project automation uses the following email rule:

1. HTML:

{{issue.description.html}}

2. TEXT:

{{issue.description.text}}

3. ORIGINAL:

 {{isse.description}}

However, both {{issue.description.html}} and {{issue.description.text}} don't appear to be interpreted as the email received is empty for those values.


1. HTML:

2. TEXT:

3. ORIGINAL:
Lorem ipsum dolor sit amet, purto aliquip tibique ea qui, in brute aliquid vix, te nam viderer civibus. Ullum virtute nostrud at vim, ex propriae cotidieque disputationi usu, vocent utamur reprehendunt sea ne. Eu audiam meliore sententiae sit. Novum dolores splendide ex ius, at dicam aliquam ceteros mei.

* test
* test
* {color:#FF0000}test{color}

Am I missing something? Can anyone help please?

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - April 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

290 views 3 20
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