Refresh field updated by script listener

I’ve a script listener that updates priority (via REST) based on impact and urgency changes.
On issue creation everything works properly, but on issue updating I’ve to refresh the page to see the priority changed.
Is there a way to update screen after updating the field?

Maybe AP.jira.refreshIssuePage() is what you need.