Forums

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

Copying issue description to the notification email

Raghu Mani July 11, 2023

Hi, I am trying to send out an automatic notification from JSM using send email component and when I try to copy over the content from the issue for example using the smart value {{issue.description}} or {{issue.description.htmlEncode}} it copies the description fine to the email that gets sent out but when there is a table or an image in the description it doesn't do it properly. Please advise the best possible way to copy the content on the description as it is to the email 

2 answers

0 votes
Jehan Bhathena
Community Champion
July 11, 2023

Hi @Raghu Mani , (wasn't able to solve this, but adding my 2 Cents to the conversation)

The description in Jira is formatted with DOC type i.e. "type": "doc" (as per the API response), so it wont preserve the formatting when sending the data ahead using the {{issue.description}}.

In theory, perhaps you can attach the description as a PDF and then forward it. Although this too isn't OOB (reference https://community.atlassian.com/t5/Jira-Service-Management/Exporting-an-issue-to-a-PDF/qaq-p/1555206).

---

PS: (In my personal opinion) Jira being a Collaboration tool I don't think send mail like a "Mailing Tool" would be the best suited Use case :-)

0 votes
Tuncay Senturk
Community Champion
July 11, 2023

Hi @Raghu Mani 

Please take it with a pinch of salt, instead of using the default {{issue.description}} smart value, have you tried using the {{issue.fields.description}}? This may ensure that the description is handled correctly, including tables and images. 

I hope that helps!

Raghu Mani July 13, 2023

Hi @Tuncay Senturk Thanks for the advise, but unfortunately it does the same stuff if I try  {{issue.fields.description}}  Snip from ticket.JPGSnip from Email.JPG

Tuncay Senturk
Community Champion
July 13, 2023

I see, I was hopeful though

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events