How to add a new dialog to transition workflow in Jira

I want to make a jira plugin that works as a workflow validator, but instead of preventing the transition if certain conditions are not met, I just want to call up a warning dialog box in which the user can choose to continue or cancel the transition.

As far as I can judge this, it is not possible to use a workflow validator, as this will lead to an error only if the conditions are not met.

I already wrote plugins for web pages, and this may seem like a possible possibility, but I don’t know how it would be possible to intercept a workflow transition to perform a user action.

I don’t know if what I want to do is possible at all, and if so, I don’t know if the webwork plugin can do it.

Are there any Jira experts who could point me in the right direction?

Thanks,
Marcus.

+4
source share
1 answer

These pop-ups are called screens. You must create a new screen and attach it to your workflow transition. Add a custom field type (if I remember correctly) "Processed Velocity Message Custom Field (for editing)" and add the default value of your message, which contains something like "If you want to continue the transition, click the button, t want, click Cancel in the corner".

You can also use a JavaScript snippet added to some field description that will add more text, style, etc. to this popup window of a specific workflow.

+3
source

All Articles