Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@12c2fd49
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@3e46ae63, com.xpn.xwiki.api.Object@12630586, com.xpn.xwiki.api.Object@22ffa9d8, com.xpn.xwiki.api.Object@3ee7b5db, com.xpn.xwiki.api.Object@5e545d20, com.xpn.xwiki.api.Object@74ae1041, com.xpn.xwiki.api.Object@4fad573f, com.xpn.xwiki.api.Object@7d3b11f6, com.xpn.xwiki.api.Object@31186db5]
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]
Retrieve the author property of the fifth object attached to this page and of class XWikiComments by index
println objsAuthor
XWiki.IsabelListaGarcia
println objs[0].author