There is a new microflow action called retrieve workflow context, that probably does what you need
Hi,
Download Workflow commons module (https://marketplace.mendix.com/link/component/117066) from Mendix Marketplace
Use the ‘UserTask_Extended’ template where workflow timeline, workflow comments and attachements are available. Customize it according to the usecase.
or
Add the below snippet from Workflow commons module to the page
Hope it helps!!!