items in a group and beneath all of the subitems of the same item

i want to export a doc where in the doc are all the items of a group and beneath every item there will be listed all of his subitems.