开发者

How to add new dialog on workflow transition in Jira

I want to make a jira plugin that works like a workflow validator, but instead of not allowing a transition if certain conditions are not met, I want to just bring up a warning dialog where the user can choose to continue or cancel the transition.

As far as I can tell this is not possible using a workflow validator, as that will only bring up an error if the conditions are not met.

I have written webwork开发者_StackOverflow中文版 plugins before, and that would seem like one likely possibility, but I don't know how it would be possible to intercept the workflow transition to perform the custom action.

I don't know if what I want to do is possible at all, and if it is, I don't know if a webwork plugin would be able to do it.

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

Thanks,

Marcus.


Those popup windows are called screens. You should create a new screen and attach it to your transition of workflow. Add a custom field of type (if I remember correctly) "Velocity processed Message Custom Field (for edit)", and add default value your message, that contains something like "If you want to continue transition, push button, if you don't want, push Cancel in corner".

You could also use a JavaScript snippet, added to some field description, that would add into that specific workflow popup window more text, style it, etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜