I am trying to create a task with a multiline description thru API (see JSON below)
Description should be:
Line1
Line2
Line3
What I get in Freshservice GUI thru API is
Line1Line2Line3
I created a task within Freshservice with multiple lines and exported it.
Then I took the description from exported JSON and copied it to the description on my JSON.
Still no success. What am I doing wrong?
My JSON payload is:
{
"due_date": "2023-10-10T10:26:13.067Z",
"notify_before": 0,
"title": "Multiline Test",
"description": "<div style=\"font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif; font-size: 14px; \"><div>Line1<br>Line2<br>Line3</div></div>"
}
The ‘description’ above is taken from the JSON export.
Tried other things like
“description”: “Line1<br>Line2<br>Line3” → Line1Line2Line3
“description”:“Line1\nLine2\Line3” → Line1Line2Line3
“description”:n“Line1”,”Line2”,”Line3”] → error