The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get numbered list from issue.description?

leotoqui1567
April 30, 2024

Currently I am automating sending an email each time an issue is created and the issue type is a task. 

For this, I am using {{issue.description}} to include it in the body of the email but it does not take into account that inside description, there is a numbered list and it only returns a # instead of 1. or 2. as I want it to do.


So my question is how can I change the code so it takes this into account?.

-> Text in my description

  1. Request 
  2. Time

-> Text in email

      # Request

      # Time


I also include my html for this point

<div style="margin-left: 20px;"> 
{{issue.description.replace("\n", "<br>")}}
</div><br>

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
May 5, 2024

Hi @leotoqui1567 

{{issue.description}} provides wiki format. You need to use a Wiki renderer to get HTML-like results. I can't help as I don't know where your code runs, but please check applicable WikiRenderers for your environment.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events