Open a popup on clientside from a groovy serverside script


Is it possible to open a popup (like a javascript alert) from a groovy script (executed on the server) ?
I mean my script is executing during a transition post function, and I want to alert the user if something doesn't work.

Thank you.


2 answers

1 accepted

I change my post function script into a validator script, with an InvalidInputException.

The user has a red message when the transition cannot pass because of the script :)

Thank you again Jamie.

1 vote

Not really... best thing is to add a comment to the issue notifying the user that it didn't work. This is easiest, and most reliable, and also means that the user will be notified by email. In the case that the transition was done via REST api or something they wouldn't get any popup.

Hum ... Ok :/
The mail notification is not a good solution in this case.

My post function script move the mother issue into another state. But if one or more mandatory fields are not filled, the script does not pass the mother transition. (I use your Behaviours plugin for mandatory fields). And in this case, i want to alert the user that the mother has madantory fields not filled, and so the mother cannot pass into the next state.

You could do that checking in a validator... if validation passes, then you know the transition on the parent will succeed.

Oh yeah, why did I don't think about it earlier ?!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
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