<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’m using a C# web site and request to create tickets as well.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’m using the AppendLine function of a stringbuilder object in C#.  I ended up adding doing a find and replace on my comment and removing \n before I send the
 request.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">Msg.ToString().Replace(<span style="color:#A31515">"\n"</span>,
<span style="color:#A31515">""</span>)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This might not be the most elegant solution, but it is working for me.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-Jennifer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com]
<b>On Behalf Of </b>Jeff Konnen<br>
<b>Sent:</b> Thursday, June 21, 2012 1:25 PM<br>
<b>To:</b> rt-users@lists.bestpractical.com<br>
<b>Subject:</b> Re: [rt-users] Question about REST interface and status<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div id="reply-content">
<p class="MsoNormal">does anybody use REST to create tickets in RT <o:p></o:p></p>
</div>
<div id="reply-content">
<p class="MsoNormal">am I the onlyone having this carriagereturn issue?<o:p></o:p></p>
</div>
<div id="83F4F2B60650454087A53C4607FD12E8">
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <br>
Jeff Konnen<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p><span style="color:#A0A0A8">On Monday 18 June 2012 at 07:51, Jeff Konnen wrote:<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid windowtext 1.0pt;padding:0in 0in 0in 8.0pt;margin-left:0in;margin-top:5.0pt;margin-bottom:5.0pt">
<div id="quoted-message-content">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
this is the way we are creating the ticket, by using a HTML form:<br>
<br>
<html><br>
<form method="POST" <br>
action="<a href="http://xxx/REST/1.0/ticket/new/">http://xxx/REST/1.0/ticket/new/</a>"><br>
  User: <input type="text" name="user" size="20"><br><br>
  Pass: <input type="text" name="pass" size="20"><br><br>
  Content: <textarea rows="10" name="content" cols="30">id: new<br>
Text: This is the ticket text<br>
Subject: This is my ticket<br>
Status: resolved<br>
Queue: 6</textarea><br><br>
  <p><input type="submit" value="Submit" name="B1"><input type="reset" <br>
value="Reset" name="B2"></p><br>
</form><br>
</html><br>
<br>
Thanks<br>
Jeff<o:p></o:p></p>
<div>
<p class="MsoNormal">On Sat, Jun 16, 2012 at 2:19 AM, Kevin Falcone <<a href="mailto:falcone@bestpractical.com" target="_blank">falcone@bestpractical.com</a>> wrote:<br>
<br>
<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">On Fri, Jun 15, 2012 at 11:23:27PM +0200, Jeff Konnen wrote:<br>
>    # Could not create ticket.<br>
>    # Status 'resolved<br>
>    ' isn't a valid status for tickets in this queue.<br>
><br>
>    Is this error due to the carriage return and how can I avoid it?<o:p></o:p></p>
</div>
<p class="MsoNormal">There's a good chance that it dislikes the carriage return.<br>
However, we'd need to know how you're creating the ticket and what<br>
you're sending across the wire to make suggestions.<br>
<span style="color:#888888"><br>
-kevin</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br clear="all">
<br>
-- <br>
Jeff Konnen<o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>