I have a webhook which automatically opens tickets from our customer support software Freshdesk in Redmine. The description from the support software is sent containing plain HTML. When passing this to the Redmine API to create an issue, the description is created with the HTML and it is very difficult to read.
Example in request:
{
"issue":
{ "project_id": 62
, "priority_id": 6
, "tracker_id": 12
, "status_id": 6
, "assigned_to_id": 23
, "subject": "Freshdesk - {{ticket.subject}}"
, "description": "Product - {{ticket.portal_name}}\n\nDescription:\n<div>this is a div</div>\n\nLast Public Comment\n{{ticket.latest_public_comment}}\n\nLast Private Comment\n{{ticket.latest_private_comment}}\n\nAgent Email - {{ticket.agent.email}}\nFreshdesk URL - {{ticket.url}}"
}
}
In Redmine:
- Product - Product Name
- Description:
<div>this is a div</div>
- Last Public Comment public comment
- Last Private Comment Private comment
- Agent Email - agentemail@ticket.com
- Freshdesk URL - www.freshdesk.com