[rt-users] Multi-line text/comment/description in REST interface

2010-02-26 Thread Chris Kaye
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?


T-Mobile (UK) Limited
Company Registered Number: 02382161
Registered Office Address: Hatfield Business Park, Hatfield, Hertfordshire, 
AL10 9BW
Registered in England and Wales
 
NOTICE AND DISCLAIMER
 
This email (including attachments) is confidential. If you are not the intended 
recipient, notify the sender immediately, delete this email from your system 
and do not disclose or use for any purpose.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

[rt-users] Multi-line text/comment/description in REST interface - SOLVED

2010-02-26 Thread Chris Kaye
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.


T-Mobile (UK) Limited
Company Registered Number: 02382161
Registered Office Address: Hatfield Business Park, Hatfield, Hertfordshire, 
AL10 9BW
Registered in England and Wales
 
NOTICE AND DISCLAIMER
 
This email (including attachments) is confidential. If you are not the intended 
recipient, notify the sender immediately, delete this email from your system 
and do not disclose or use for any purpose.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Multi-line text/comment/description in REST interface - SOLVED

2010-02-26 Thread Jerrad Pierce
On Fri, Feb 26, 2010 at 12:32, Chris Kaye chris.k...@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.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Custom Field in email subject line

2010-02-26 Thread Jim Tambling
Hello,

 

I'm guessing the syntax for this would be quite simple but I have 0 perl
knowledge. I want to display the value of a custom field in the email
subject.

 

Regards,

 

Jim Tambling

 

Network Services

Data Tote Ltd

0117 9029215

 

P Think of the environment. Do you need to print this email? 

 

 

 

 

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com