Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@a24de7a
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@185aec70, com.xpn.xwiki.api.Object@7958b98d, com.xpn.xwiki.api.Object@2ffe1638, com.xpn.xwiki.api.Object@5264cf25, com.xpn.xwiki.api.Object@585bb065, com.xpn.xwiki.api.Object@6b99e434, com.xpn.xwiki.api.Object@4455491c, com.xpn.xwiki.api.Object@3b32f050, com.xpn.xwiki.api.Object@d3f328d]
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