How to check if checkbox is checked without crashing the post function? say issue.get("customfield_13219") is my checkbox field. I need to know if it's checked or not. If I use .size or .value methods while issue doesn't have this checkbox checked script return this error:
java.lang.NullPointerException: Cannot get property 'value' on null object
If this happens inside a post function this transition will abort. I need to check the value without it crashing. I use JMWE app
Ok I just realised it I need to simply compare customfield value to null and it works
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.