Forums

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

Jira automation Send Email - Table created as a default value of custom field not showing

Kayle Saunar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 1, 2023

Hi,

Is there a way for me to display in the email the table that is set as part of the default value of a custom field?

Currently, it is displayed like this in the email sent:

||Date/Time||Tasks||Owner||
| | |
| | |
| | |

I assumed it will look like this in the email. I used smart value to pull the custom field's content.

Screenshot 2023-07-02 103821.png

Thanks!

1 answer

1 accepted

4 votes
Answer accepted
Evgenii
Community Champion
July 2, 2023

Hi, @Kayle Saunar 

You have to change value format. It's can be done by adding .htmlEncode after field name in smart value. In your case it will look like:

{{issue.description.htmlEncode}}

More information on formatting you can find here:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/

And here:

https://confluence.atlassian.com/automation/smart-values-syntax-and-formatting-1141480622.html

 

Kayle Saunar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 2, 2023

Hi @Evgenii ,

Thank you for helping. However, the 'htmlEncode' did not work for me. I've checked the documentation then did a bit of search from what you've given and used '.html'

It looked like {{issue.description.html}} then put '.replace' to be able to see the table borders and some styling.

Like # people like this
Marius Fischer
Contributor
January 31, 2024

Hi @Kayle Saunar 
would you mind sharing how your final solution looks like? We are currently trying to send an automation Mail that contains tables in the description field.

Like # people like this

Suggest an answer

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

Atlassian Community Events