Post Request

Aspasia Strouvali May 7, 2021

Hi,

I am trying to create a POST request from Freshdesk to Jira.

It works fine but the description is displayed with HTML tags. Following on the right side you can see the Freshdesk ticket and on the left the Jira ticket.

Capture.PNG

Can you help me how to fix that please. Following is the json that I use for the request:

{
"fields": {
"project": {
"key": "INCIDENTS"
},
"summary": "{{ticket.subject}}",
"description": "{{ticket.description}}",
"issuetype": {
"name": "Bug"
},
"assignee": {
"id": ""
},
"components": [
{
"name": "{{ticket.cf_system}}"
}
]
}
}

Thank you in advance.

Aspasia

 

1 answer

0 votes
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 8, 2021

Dear @Aspasia Strouvali ,

your JSON data is correct. But you have to pre-process ticket.description before sending to Jira.

Jira does not accept HTML code in the description.

Either you remove the HTML tags or you convert them to Wiki mark up code.

So long

Thomas

Suggest an answer

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

Atlassian Community Events