Asking user for confirmation with prompt?

I have a java plugin that works with greenhopper/jira that moves certain issues around when certain conditions are met.

Is there any way I can prompt the user to confirm or cancel when these changes are about to happen using either Java or Jython?

2 answers

1 accepted

1 vote
Accepted answer

Hi Justin,

As listeners are non interative. So in listeners, you can just store the ids of those issues which you are moving. In the UI part, you can create a separate jira menu which will be visible only when there are some issues left for moving and for confirmation. This condition will be checked by JIRA on next refresh of page automatically.

It is just an idea, you can do it in a completely different way according to your need.

I think that's right - flagging them somehow and adding them to an approval queue (Which you'll have to code for) is probably the way to approach this.

Gotcha, thanks!

1 vote

Depends on how your plugin is doing it. Is it a listener of some sort?

Yes, currently it is an issue event listener

Then, I'm afraid the answer is no. Listeners are completely non-interactive, there's simply nothing to hang any form of user prompting on.

In fact, I'm not too sure you can do it in any other way either. I assume you're looking for some form of acceptance popup when someone moves something on a GH board? I think that would need hooks coded into the core of Jira and GH

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

2,104 views 14 13
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you