Upon Bug creation:
When "Regression" value is set to "Yes"
Make the fields "Good version" "Bad version" required
Yes, i am using script runner at the moment and i managed to get it now to make the fields throw an exception when they are empty but for some reason it is also throwing when i add values to the required fields
Here is the code im using:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like I understood the problem.
You have to split behaviour in two parts. I made an example. In example imagine, that my field "Self Development" is your "Regression"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First of all, thanks a lot for the fast replies!
Where did you use this code? Im using "Simple scripted validator" It looks like you are using some other validator type maybe?
Is that in the custom field configuration?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not vaidator. It's behaviour. It's used, for example, to prefill description, on issue creation (and many other cases)
It's located here:
https://your.address/plugins/servlet/scriptrunner/admin/behaviours
You wrote, that on creation you want users to fill required fields - fine, use behaviours :)
How it works - you create new behaviour, map it with needed project and issue type, then add there scripts, which I wrote. That's all, no validators needed.
Take a look, they are very cool in cases, when you want to automate actions, while user uses issue creat/edit screens.
https://docs.adaptavist.com/sr4js/latest/features/behaviours/behaviours-tutorial
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, why not. Let's try zoom.
You need to look at changes of "Regression" field, not "Good version" or "Bad version".
You can log events with log.warn("Something to log: ${resultOfAction}")
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.