I’m new in Jira development and I’m trying to use the Dialog 2 too, but I’m having some issues. In my case, I trying to refactor some old plugin from 3.X version. in this particular plugin, I create a new entry (web-item) in the issue operations (button More) with a link to a webwork action. The objective is open a popup to fill some data before send an email.
<web-item name="Incident Report Email" i18n-name-key="incident-email.name" key="incident-email" section="incident-report-section" weight="1000">
<description key="incident-email.description">The Incident Email Plugin</description>
<label key="incident-email.label" />
<webwork1 key="incident-email-webwork" name="Ponctual Mail" i18n-name-key="incident-email-webwork.name">
<description key="incident-email-webwork.description">The Incident Email Webwork Plugin</description>
<action name="com.trk.jira.webwork.MailAction" alias="MailAction">
This open a new page, created by velocity template and not a popup. Meanwhile I found this link https://developer.atlassian.com/jiradev/jira-platform/guides/issues/tutorial-displaying-content-in-a-dialog-in-jira, and I could open a popup using only styleClass tag with trigger-dialog value.
Now, I’m trying to customize the popup, but I could find any documentation about this. Use dialog 2 does not work until now. The sample in the AUI documentation works only removing the styleClass tag from atlassian-plugin.xml.
If you find a answer for that, I will appreciate.