I have a very old jira version Jira 3.13.5 According your experience which is the best plugin to perform field validation controls? I was trying behaviour and groovy plugin but they do not work properly. "Behaviour plugin" is working just for making a field mandatory (other functionalities do not work), "groovy plugin" it's working but when I set the error custom message i get a generic "error creating issue"
It depends on the validation you need.
Behaviours and the Scripting plugin are very useful and do work well on Jira 3.13 (there's no information here to help us debug your issue creation - have a look at the log file). You could also try other plugins from the marketplace that provide validators, or even write your own validators for the workflow transitions. Look for Jira Suite utilities and Misc Workflow extensions as a start.
For all of this though, it is well worth checking that you are using the correct versions of the plugins for Jira 3.13...
I'm afraid that doesn't make much sense.
First of all, post-functions are not there to do validation on data. That should be done in validators.
Secondly, Jira doesn't have any mandatory field validation off-the-shelf...
So, if you're doing it in a post-function, that would explain why it's not really working - it's bad design and probably not doing what you think it should (and almost certainly not even capable of doing it either). If it is being done in the right place, by a validator, then you'll need to work out what plugin is providing the validator you are using, then we might be able to help!
Nic sorry my explanation was misleading. I'm not using post-function, I'm using groovy runner plugin. We have created the (groovy script.txt) that is checking fields. If the field don't match the condition an error should be displayed. The groovy plugin gives the possibility of showing a custom error message, but when we get the error jira shows just a generic error. Please see the screenshot.
Configuration of the error:
Ah, good, that's stopped me wandering off in the wrong direction.
I think that should all work, from my distant memory of the script runner in 3.12.
However, as you aren't getting the script runner error, I'm tempted to suggest that it's not actually that particular script causing the problem, but something else. When you get that error (which I'm seeing in a plugin I'm trying to convert from 4 to 5 at the moment), it could be a number of things. So far, Jira has written a LOT more into my log files about the error, so could you look there to see if it's being more talkative?
(This still doesn't change the recommendation from Renjith or my first response, I still think you're using the best options)
Ok, that looks llike it's a bug in the scripting plugin, or the interface between the plugin and Jira's validator structures then. It's reporting your error message inside the plugin, but that's not flowing back to the validators for presentation to the user.
I'm afraid your options are limited here - first, check that the version of the script runner is definitely the latest one that is valid for that version of Jira. If it is, then you're pretty much stuck - you could ask for help, but all you'll get from Atlassian is "upgrade to a supportable Jira", and I doubt Jamie would go back that far to support the script-runner either.
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot