We are using forge custom UI modifications to populate summary and description fields while creating issue. However emoji’s are not being rendered properly.
We are using MarkdownTransformer to parse the description values.
Here is a snippet how we are saving the value on the description field.
let descriptionDoc = template.description
if (typeof descriptionDoc === 'string') {
const transformer = new MarkdownTransformer()
descriptionDoc = transformer.parse(descriptionDoc).toJSON()
descriptionDoc.version = 1
}
api.getFieldById('description')?.setValue(descriptionDoc);
if (template?.summary) {
api.getFieldById('summary')?.setValue(template.summary);
}
Please help!