0

I need to read out entire text of edit portion of Fogbugz. But sLatestTextSummary only prints few and ends with ... i'm using for loop to read out all the sLatestTextSummary text.

flag

1 Answer

1

In what context are you trying to read out the case event details? From within a FogBugz plugin? Via a BugMonkey script?

sLatestTextSummary is just that: a summary of the latest event containing a comment, not the entire comment. To get at the full comment you'll want to look at CBugEvent's GetPlainText() and/or GetSafeHtml() methods.

If you're using the XML API, you'll want to include the events column in the cols argument of your cmd=search request, and then look at the various columns included with each <event> node.

If you're trying to scrape the bug event text from the list page using a BugMonkey script, I'm afraid this isn't possible directly as that information isn't sent down on the list page.

link|flag
i'm passing sHtml column in the cols argument but is not fetching me anything. events column returns all the results, i can see the sHtml tag in the returned result containing plain text. However using sHtml in cols argument doesn't work. – unknown (google) Jul 19 at 8:27
You'll need to include events in your list of columns, and then just look at each of the <event> nodes you get back to get at the full summary. s and sHTML don't work with cols because cols is specifying the columns of Bug to return, but s and sHTML are columns of BugEvent. Sorry for the confusion! I've updated my answer. – db Jul 19 at 14:24

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.