Refresh field updated by script listener

Hi,
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?
Regards,
Gaizka

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