How can I implement popup confirmation dialogs in Jira?

I created a Groovy script that duplicates issues during a transition in Jira. The script runs seamlessly in the background and successfully generates the necessary cloned issue.

Now, I would like to show a popup dialog that verifies the name of the issue to be cloned before the duplication occurs. Could someone guide me on the process of creating these confirmation dialogs in Jira?

hey, u can embed a custom js snippet in your groovy code that triggers a confirm dialog box before proceeding. i’ve seen others use rest endpnts to manage user responses, so try integrating that in your flow. hope it helps, cheeers!

Based on my experience, an alternative approach would involve using Jira’s plugin framework to create a more integrated confirmation interface. Instead of embedding custom JS in your Groovy scripts, developing a small plugin allows you to handle confirmation pop-ups in a controlled environment. This not only improves maintainability but also leverages Atlassian’s supported modules for better compatibility during updates. By utilizing REST endpoints within your plugin, you can transmit user responses securely to your backend logic. I found that this method offers a cleaner separation between business logic and UI elements, making the solution both robust and easier to troubleshoot.

In my experience, a more robust method involves leveraging Atlassian Forge to create a custom confirmation dialog rather than relying on inline JavaScript within Groovy. Using Forge allowed me to integrate the confirmation window seamlessly with the Jira user interface while making use of its secure API calls. I found that handling asynchronous operations more effectively through Forge simplified the process of validating user input and negotiating backend logic. Although it required adjusting the project structure, this approach ultimately provided a unified and maintainable solution that enhanced consistency with Jira’s overall look and feel.