[rt-users] Multi-line text/comment/description in REST interface - SOLVED
Jerrad Pierce
jpierce at cambridgeenergyalliance.org
Fri Feb 26 13:02:12 EST 2010
On Fri, Feb 26, 2010 at 12:32, Chris Kaye <Chris.Kaye at t-mobile.co.uk> wrote:
> I have been trying to use the REST interface through PHP cURL and the
> content=>value uses new lines (\n) to delimit fields so how do you embed new
> lines into the Text: field?
>
> Answer: Apparently, subsequent lines need a leading whitespace.
Never encountered that, it may be a peculiarity of your setup.
I use the RT::Client::REST and never have to do this, and it is not done within
the library itself either. Furthermore, the REST interface simply takes in the
same style forms as the CLI, which are exposed online via the "Offline Edit"
tool, and this requires no leading whitespace for multi-line data. Instead, the
form acts more like a HEREDOC.
More information about the rt-users
mailing list