how can i get schema and options on customfield from Java API JQL by ID option ?
I have
JqlQueryBuilder builder = JqlQueryBuilder.newBuilder();
builder.where().defaultAnd().customField(customField.getIdAsLong()) - how next ?
Query query = builder.buildQuery();
logger.debug("Query: {}", query);
SearchRequest searchRequest = new SearchRequest(query);
Can you please be more clear? What do you want to do?
I want to make an analog on JQL
customField.getConfigurationSchemes().forEach(scheme -> {
AtomicReference<FieldConfig> fieldConfig = new AtomicReference<>(
((FieldConfigScheme) scheme).getOneAndOnlyConfig());
OptionsManager optionsManager = ComponentAccessor.getOptionsManager();
Options options = optionsManager.getOptions(fieldConfig.get());
for (Option option : options.getRootOptions()) {
LinkedHashMap<String, Object> o = new LinkedHashMap<String, Object>();
if (option.getOptionId().equals(controlID){
o.put("efrCFValue", option.getValue());
o.put("jiraEntityId", option.getOptionId());
arrayList.add(o);
}
}
});
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.