How to use view.refresh () in custom UI

Hi team
I am using modal for adding comments into the jira issue pnel.After comments added successfully.I am closing the modal.
Again in another modal i am showing the added comments.I am unable to get the recently added comments.If i refresh the page i am able to get it.I am using resolver function for getting comments from jira.
Kindly help on how to refresh the data.

Hi Team

Could please update on the above.Since my app is in testing.I need to fix this issue.

Thanks for your understanding