issue.customfield_xxxxx.value.isEmpty did not return TRUE if the field was empty. But when I selected a value in the field, the same smart value returned FALSE. So it works only when the field is not empty.
Does anyone experience the same or I did something wrong.
You can use the expression "equals" over the child value instead. Check this example:
{{equals(issue.Custom_Field_***.child, null)}}
This will return TRUE whenever the child is null and FALSE whenever some value is assigned. Note that I am referring to the child structure, not its content (child.value). Trying this on its value for some reason won't work.
Hi @Bin
Yes, I have seen the same behavior, and I have not found the isEmpty function to be useful due to this problem with handling null values as "empty".
I recommend using other methods to detect an empty value.
Kind regards,
Bill
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.