I am facing issues while loading options from a custom field. with the below code, i am getting the right values from option objects. Can anyone suggest what is wrong with the below code?
CustomField customField = customFieldManager.getCustomFieldObjectByName("Affects Build"); MutableIssue issue = issueManager.getIssueObject("BUG-1"); FieldConfig fieldConfig = customField.getRelevantConfig(issue); OptionsManager optionsManager = ComponentManager.getComponentInstanceOfType(OptionsManager.class); List<Option> optionsList = optionsManager.findByParentId(customField.getIdAsLong()); List<Option> optionsList = options.getRootOptions();*/ if(optionsList.size()>0){ List<String> buildOptions = new ArrayList<String>(); for(Option option : optionsList){ buildOptions.add(option.getValue()); }
There is something wrong in my javascript and so not properly rendered. I fixed the javascript and now it is fine. The code is actually working.
Hi Atlassians, Any update please??
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.