Comments in Audit Entries of Alfresco REST API.

cancel
Showing results for 
Search instead for 
Did you mean: 
Syedjunaid
Active Member II

Comments in Audit Entries of Alfresco REST API.

Hello,

I am trying to get what exactly the user commented on a node.In Audit REST API there are entries for the creation/update/deletion of the comment but no entries for what the user commented.

What i am getting now is "A user created/updated a comment on a node at this time".

What i am trying to get is " A user  created/updated a comment "this" on a node at this time."

Any idea how can I get the actual comment with the action and time of the comment posted?

1 Reply
jpotts
Professional

Re: Comments in Audit Entries of Alfresco REST API.

A comment is a node like any other node. It might be instructive to add a comment, then go look at the document you commented on in the node browser.

You should see that the node has a child named "fm:discussion", which is of type fm:forum.

That object will have a child named cm:Comments, which is of type fm:topic.

And that object will have a child of type fmSmiley Tongueost which is the node that holds the comment.

The fmSmiley Tongueost object has the creator and created date. And if you look at its text content in the cm:content property you'll see the body of the comment itself.