Hi,
With a plugin I inserted a new process step in Crucible. If this step is finished I would like to show a popup with a message. I tried to use JOptionPane but this doesn't work.Now I found Atlassian User Interface AUI but I do not know how I can start a AUI dialog from Java.
Who can help me please?
Kind regards,
Christian
Community moderators have prevented the ability to post new answers.
Hi Jamie,
yes I tought about that but I do not know how I to do that. Is there anywhere an example or tutorial? I think the problem is not how to design the dialog (in a JavaScript-file?) but how to call the dialog from Java.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, you don't call the dialog from java. Instead your code calls the servlet which returns a JSON response. If the conditions are correct you return the information you need to construct the form.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jamie Echlin: Christian is trying to pop a dialog from Crucible. I'd like to do the same but from JIRA. Still possible? -george
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you will need to inject some javascript on every page using web resources, and have that poll a servlet that you provide in your plugin. If all your events are finished you can construct a dialog using AUI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
A JOptionsPane is a Java widget for constructing thick client UIs. It cannot be used in web development. For browser side dialogs, you can use AUI however you can only construct this from the client, in JavaScript.
I would be interested to hear what sort of plugin you are writing, so we can advise you on the best strategy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Seb,
It is an EventListener that wait on a close-event. This event is the entry point for my code and when all my methods are finished I want to popup a message (box/window/dialog) with the results of the process.
I have found AUI and I found some JavaScript dialogs, too. But I do not know how I can create a dialog using JavaScript, sending a result string to it and how I can send the popup command from Java to this Javascript method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Seb,
It is an EventListener that wait on a close-event. This event is the entry point for my code and when all my methods are finished I want to popup a message (box/window/dialog) with the results of the process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
Hi Seb,
It is an EventListener that wait on a close-event. This event is the entry point for my code and when all my methods are finished I want to popup a message (box/window/dialog) with the results of the process.
I have found AUI and I found some JavaScript dialogs, too. But I do not know how I can create a dialog using JavaScript, sending a result string to it and how I can send the popup command from Java to this Javascript method.