Skip to main content
Question

API: Multiline description in Task

  • September 12, 2023
  • 3 replies
  • 136 views

Go42
Apprentice
Forum|alt.badge.img
  • Apprentice
  • 1 reply

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”:[“Line1”,”Line2”,”Line3”] → error

 

Did this topic help you find an answer to your question?

3 replies

rajagopal.baladhandayutham
Community Manager
Forum|alt.badge.img+6

Hi @Go42 

Let me check this internally with the right stakeholders and get back to you with updates on this.

Thanks


Go42
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 1 reply
  • November 9, 2023
rajagopal.baladhandayutham wrote:

Hi @Go42 

Let me check this internally with the right stakeholders and get back to you with updates on this.

Thanks

Any updates?


Prathamesh K
Community Debut
  • Community Debut
  • 4 replies
  • October 15, 2024

I’m also facing the same issue.
FS Team, any update on this ?


Reply