Solved: Line Break Issue on TicketCreate API

Moderator: crythias

Locked
stevechan
Znuny newbie
Posts: 25
Joined: 02 Jan 2020, 05:15
Znuny Version: 6.0.4
Real Name: Steve Chan

Solved: Line Break Issue on TicketCreate API

Post by stevechan »

I am currently using the GenericTicketConnector to create a Ticket. However, the article will break into newline automatically. I am using Postman to create Ticket. The content as follows. Any idea?? I would appreciate your help. Thank you
"Article": {
"Subject": "First",
"Body": "I would like to suggest to add more units of stage platforms for Chancellor Room as its size is not the standard one and it's a bit difficult if we need to enlarge the stage platform a few days ago before the event day (the no. of onstage guests may increase in certain extend)",
"ContentType": "text/plain; charset=utf8"
}

In the Ticket Zoom view, there is plenty of room for the article to go
Annotation 2020-03-30 093634.png
You do not have the required permissions to view the files attached to this post.
Last edited by stevechan on 30 Mar 2020, 05:12, edited 1 time in total.
stevechan
Znuny newbie
Posts: 25
Joined: 02 Jan 2020, 05:15
Znuny Version: 6.0.4
Real Name: Steve Chan

Re: Line Break Issue on TicketCreate API

Post by stevechan »

It only happens in English character. I tried another language and it works fine. FYR
stevechan
Znuny newbie
Posts: 25
Joined: 02 Jan 2020, 05:15
Znuny Version: 6.0.4
Real Name: Steve Chan

Re: Solved: Line Break Issue on TicketCreate API

Post by stevechan »

Updated:

I change the text/plain to text/html and now work fine.
stevechan
Znuny newbie
Posts: 25
Joined: 02 Jan 2020, 05:15
Znuny Version: 6.0.4
Real Name: Steve Chan

Re: Solved: Line Break Issue on TicketCreate API

Post by stevechan »

I don't understand how it works because it is a random try. Anyone can explain the reason? Thank you?
Locked