It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to show popup dialog/message to user from Java plugin in Jira

Marcel Höll Dec 01, 2017

I want to write a plugin, which informs the users on the UI, that the new assignee is in vacation.

To achieve this, I implemented an EventListener to listen to assignee events and check a CSV file on the server if the user is in vacation. If so, the plugin should diplay a message/popup to the user, that he is responsible for the assignment of the new user (in vacation) to the issue.

 

Is there any possibilty to do so or any othter way?

 

Thank you in advance

1 answer

0 votes
Micky CARITTE Community Leader Dec 01, 2017

Hi Marcel,

You can use multiple UI elements for your purpose. AUI (Atlassian User Interface) is a library offering access to devs to Atlassian native UI objects. You might want to reuse one of those, I'm thinking of the Flag object (top-right corner notification) : https://docs.atlassian.com/aui/latest/docs/flag.html

Dialog2 (https://docs.atlassian.com/aui/latest/docs/dialog2.html) is another option if you need more space or interaction!

Please note that some of those components must be dependency injected in your web resources (mentioned on top of the page when applicable).

Hope this helps!

Cheers

Marcel Höll Dec 12, 2017

Thank you so far, but how do I call the Flag inside the Jira JAVA Plugin?

Micky CARITTE Community Leader Dec 13, 2017

Hi,

UI transformations are usually handled in Javascript or through the velocity templates associated with your views. If your plugin is a "servlet only" plugin with no interface, I'm not sure you can leverage UI notifications.

Thanks

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

3,965 views 20 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you