[rt-users] How to get comment text content from comment id

Chris Down chris at chrisdown.name
Thu Nov 27 06:37:19 EST 2014


I have a RT::Transaction that looks like this:

       "OldValue" : "",
       "NewValue" : "",
       "TimeTaken" : "0",
       "Creator" : "1234",
       "ObjectId" : "2345",
       "Type" : "Comment",
       "Field" : "",
       "Created" : "2011-11-03 18:02:56",
       "id" : "3456",
       "Data" : "No Subject",
       "ObjectType" : "RT::Ticket"

I thought that the comment would be in NewValue, but it seems both 
OldValue and NewValue are blank.

How should I get the comment text? I looked through the API docs, but I 
couldn't find what I should use to do this. Any pointers in the right 
direction would be appreciated :-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 971 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20141127/4d8f271e/attachment.sig>

More information about the rt-users mailing list