Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@4ffcc966
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@779e132a, com.xpn.xwiki.api.Object@2afc67c0, com.xpn.xwiki.api.Object@20ff844c, com.xpn.xwiki.api.Object@6746aa80, com.xpn.xwiki.api.Object@5063ee78, com.xpn.xwiki.api.Object@50bd3183, com.xpn.xwiki.api.Object@34fdb8de, com.xpn.xwiki.api.Object@7d7411ff, com.xpn.xwiki.api.Object@4f49bcb1]
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