Hi,
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.
Regards.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could do that checking in a validator... if validation passes, then you know the transition on the parent will succeed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh yeah, why did I don't think about it earlier ?!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.