Note that there are some explanatory texts on larger screens.

plurals
  1. POFogBugz XML API (Cases:)
    text
    copied!<p>I'm consuming the <a href="http://www.fogcreek.com/fogbugz/" rel="nofollow">FogBugz XML API</a> but I have a problem. I'm able to create new cases, open created cases, search cases etc through my app. The problem consist of when getting the payload I can get the body of the case using the following piece of code:</p> <pre><code> string fbToken = LogOnFogBugz(); string param = ""; param += "cmd=search"; param += "&amp;token=" + fbToken; param += "&amp;q="+ "appID["+appID+"]"; param += "&amp;cols=sTitle,sStatus,sLatestTextSummary"; HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(fbUrl + param); httpWebRequest.Method = WebRequestMethods.Http.Post; httpWebRequest.Accept = "application/xml"; httpWebRequest.ContentLength = 0; HttpWebResponse response = (HttpWebResponse)httpWebRequest.GetResponse(); StreamReader streamReader = new StreamReader(response.GetResponseStream()); XDocument doc = XDocument.Load(streamReader); var cases = from c in doc.Descendants("case") select new { CaseNumber = c.Attribute("ixBug").Value, CaseTitle = (string)c.Element("sTitle"), CaseStatus = (string)c.Element("sStatus"), CaseText = (string)c.Element("sLatestTextSummary") }; </code></pre> <p>but If I edit the case and add text to it, I only get last entered text as (<code>sLatestTextSummary</code>) implies.</p> <p>How can I get the whole text from a case using the XML API.</p> <p><strong>Example:</strong></p> <blockquote> <p>Opened by xxx xxx 4/4/2012 (Today) 10:31 AM ------------------------->Blah Blah Blah</p> <p>Assigned to xxx xxxx by xxx xxx 4/4/2012 (Today) 10:31 AM</p> <p>Edited by xxx xxx 4/4/2012 (Today) 2:00 PM ---------------------------->New text.</p> </blockquote> <p>I'm only getting <code>{new text}</code>.</p> <p>Thanks in advance.</p> <p>Ed</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload