Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@ba6593c
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@21976029, com.xpn.xwiki.api.Object@592a34f9, com.xpn.xwiki.api.Object@61fbf52a, com.xpn.xwiki.api.Object@649ccaa7, com.xpn.xwiki.api.Object@71bccd8b, com.xpn.xwiki.api.Object@225a9b03, com.xpn.xwiki.api.Object@6a76f393, com.xpn.xwiki.api.Object@27716e80, com.xpn.xwiki.api.Object@80da9bb]
Retrieve the author property of all objects attached to this page and of class XWikiComments
println objsAuthors
[XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez, XWiki.IsabelListaGarcia, Anonymous, XWiki.YolandaMariaListeMartinez, XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez]
objsAuthor = doc.getObjects('XWiki.XWikiComments')[2].author
println objs[0].author