How can we add dialog pop-up to Workflow post function through JIRA plugin?

Use case : When a transition changes from TODO->InProgress I would like to call Rest API and display the result in pop-up screen.

What I tried: I have created the plugin, added Workflow post function module.

I’m able to call the Rest API, but I want to render the UI with a response.

Is there any way to achieve this?

@navyak are you working with Jira Server or Jira Cloud?

@rwhitbeck I’m working with Jira Server.

I’m trying to achieve through JIRA plugin