If I am not wrong, all the associated items are automatically added to Attachment subheading of the work object(as below):-
1. Create a section for ex: "CaseAttachmentEmails" with a table layout.
2. Configure above table layout with "AllAttachments.pxResults" pagelist of Link-Attachment class. "AllAttachments" should be defined as PageName under Pages & Classes for Code-Pega-List applies to class.
3.Embed it in pyCaseAttachmentWrapper section.
4. pyWorkAttachmentFeedDesc and pyWorkAttachmentFeedElement section.
Hope it will help you in implementing your use-case. Kindly notify if it does.