REST interface

Hi all.

I’m trying to write a java interface to RT using the REST API.

All is going swimmingly, except one problem, how can I create a ticket
with multi line “Text” content…

Eg, if I send through this form

Queue: GeneralSubject: Foo

Status: new

Requestor: mwatson@foo.com

Text: This is the ticket content

It works fine. However

If I send

Queue: General

Subject: Foo

Status: new

Requestor: mwatson@foo.com

Text: This is the ticket content

Here is some more content

It of course fails. So, Does anyone know how to do this correctly?

Regards

Matthew Watson

Netspace Online Systems

(03) 98110010

I think you prepend whitespace for the lines that follow, something like
this:

Text: line1
line2
line3

See RT::Interface::REST, function form_parse().

  • Dmitri.On Wed, 2006-05-03 at 22:29 -0400, Matthew Watson wrote:

Hi all.

I’m trying to write a java interface to RT using the REST API.

All is going swimmingly, except one problem, how can I create a ticket
with multi line “Text” content…

Eg, if I send through this form

Queue: General

Subject: Foo

Status: new

Requestor: mwatson@foo.com

Text: This is the ticket content

It works fine. However

If I send

Queue: General

Subject: Foo

Status: new

Requestor: mwatson@foo.com

Text: This is the ticket content

Here is some more content

It of course fails. So, Does anyone know how to do this correctly?

Regards

Matthew Watson

Netspace Online Systems

(03) 98110010

plain text document attachment (ATT219280.txt), “ATT219280.txt”


List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Best Practical is hiring! Come hack Perl for us: http://bestpractical.com/about/jobs.html

At Wednesday 5/3/2006 10:29 PM, Matthew Watson wrote:

Hi all.

I’m trying to write a java interface to RT using the REST API.

I’ll be very interested in the results of this, if & when you feel
you have something you could share…

Thanks,
Steve

Thanks, that worked a treat.

Regards,
Matt.

-----Original Message-----
From: Dmitri Tikhonov [mailto:dtikhonov@vonage.com]
Sent: Thursday, May 04, 2006 10:59 PM
To: Matthew Watson
Cc: RT-devel
Subject: Re: [Rt-devel] REST interface …

I think you prepend whitespace for the lines that follow, something
like
this:

Text: line1
line2
line3

See RT::Interface::REST, function form_parse().

  • Dmitri.

This email and any files transmitted with it are confidential and intended solely for the
use of the individual or entity to whom they are addressed. Please notify the sender
immediately by email if you have received this email by mistake and delete this email
from your system. Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of the organisation.
Finally, the recipient should check this email and any attachments for the presence of
viruses. The organisation accepts no liability for any damage caused by any virus
transmitted by this email.

When I have time (and have it all working) I will look at getting it
into a releasable form.

Regards,
Matt.

-----Original Message-----
From: Stephen Turner [mailto:sturner@MIT.EDU]
Sent: Thursday, May 04, 2006 11:03 PM
To: Matthew Watson; RT-devel
Subject: Re: [Rt-devel] REST interface …

At Wednesday 5/3/2006 10:29 PM, Matthew Watson wrote:

Hi all.

I’m trying to write a java interface to RT using the REST API.

I’ll be very interested in the results of this, if & when you feel
you have something you could share…

Thanks,
Steve

This email and any files transmitted with it are confidential and intended solely for the
use of the individual or entity to whom they are addressed. Please notify the sender
immediately by email if you have received this email by mistake and delete this email
from your system. Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of the organisation.
Finally, the recipient should check this email and any attachments for the presence of
viruses. The organisation accepts no liability for any damage caused by any virus
transmitted by this email.