Forums

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

How to remove HTML elements when posting to the Description field

Gavin Walsh _WFC_
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!
February 13, 2024

We are collecting Client issues in our FreshDesk application, and would like to push these issues that require software development into Jira.

We've successfully created automations in FreshDesk that trigger a webhook to create the issue in Jira, the only problem is that the Description in FreshDesk is being updated in JIRA with HTML code as part of the text.

Is there a way to ensure that the description from FreshDesk is posted in JIRA as plain text?

This is the code:

{
"fields": {
"project": {
"key": "KAN"
},
"summary": "Freshdesk/Jira Integration: SFTP Issue",
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "{{ticket.description}}"
}
]
}
]
},
"issuetype": {
"name": "Task"
}
}
}

 

JIRA Issue.png

2 answers

0 votes
Rajiv Ranjan
Contributor
April 20, 2025

Hi @Gavin Walsh _WFC_

Please follow the steps mentioned below using the link. Make sure you can limit the JQL results to test the outcome first. Always suggested to perform such automation on the sandbox.

https://support.atlassian.com/jira/kb/removing-html-formatting-in-the-jira-issue-descriptions-from-jeditor/

0 votes
Brant Schroeder
Community Champion
May 28, 2024

@Gavin Walsh _WFC_ welcome to the Atlassian community

The API only supports Atlassian editor markup to be passed through it.  It will not interpret or convert the HTML.  You would need to parse the HTML out before passing it through the API.  

Suggest an answer

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

Atlassian Community Events