We have few behaviors, where based on field A, field B values will be shown. but in field B we have 40 options, out of which 5 dropdown options are disabled. Now, behavior should only show 35 options in field b, instead we see all 40 which includes disabled values.
How can we not show disabled values?
Any input is appreciated.
Hi @KRC it depends on the implementation of your behaviours script. Can you share it? In my opinion the values are put to the list of values of the field incorrectly.
def customField = customFieldManager.getCustomFieldObject(fieldBizName.getFieldId())
def config = customField.getRelevantConfig(getIssueContext())
def options = optionsManager.getOptions(config).findAll{!it.disabled}
In order to set options, i have added findAll{!it.disabled} at the end, is this a proper approach?
@Martin Bayer _MoroSystems_ s_r_o__ thank you for taking time to respond.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @KRC it looks fine, can you debug it a little? I would print options to check the condition it.disabled works...
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.