Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Dialog popup or using AUI dialog from Java in Crucible Plugin

c cc August 28, 2011

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

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
c cc August 31, 2011

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.

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2011

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.

c cc September 1, 2011

Thx Jamie, maybe that could help me. I will try it. :-)

george lockwood February 14, 2014

@Jamie Echlin: Christian is trying to pop a dialog from Crucible. I'd like to do the same but from JIRA. Still possible? -george

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 30, 2011

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.

0 votes
c cc August 30, 2011

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.

0 votes
seb
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 29, 2011

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.

c cc August 29, 2011

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.

c cc August 29, 2011

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.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events