if (eachEntry.getKey().equals(eachField.getId())) { try { final String attributeValue = eachEntry.getValue(); final Object mappedFieldValue = fieldMapFunctionCache.get(eachField.getSchema()).mapToFieldValue(eachField.getId(), eachField.getSchema(), attributeValue); builder.setFieldValue(eachField.getId(), mappedFieldValue); populatedFields.add(eachField.getId()); break; // we found a representation, now continue with next attribute } catch (Exception ex) { LOG.error("Could not convert attribute (id={}, value={}) to jira field value. Ignoring attribute.", eachField.getId(), eachEntry.getValue(), ex); final String missingFields = requiredFieldsNotSet.stream().map(f -> String.format("id: %s, name: %s", f.getId(), f.getName())).collect(Collectors.joining(", ")); LOG.warn("Not all required (custom) jira fields have been set. The following are unset: {}", missingFields);
if (eachEntry.getKey().equals(eachField.getId())) { try { final String attributeValue = eachEntry.getValue(); final Object mappedFieldValue = fieldMapFunctionCache.get(eachField.getSchema()).mapToFieldValue(eachField.getId(), eachField.getSchema(), attributeValue); builder.setFieldValue(eachField.getId(), mappedFieldValue); populatedFields.add(eachField.getId()); break; // we found a representation, now continue with next attribute } catch (Exception ex) { LOG.error("Could not convert attribute (id={}, value={}) to jira field value. Ignoring attribute.", eachField.getId(), eachEntry.getValue(), ex); final String missingFields = requiredFieldsNotSet.stream().map(f -> String.format("id: %s, name: %s", f.getId(), f.getName())).collect(Collectors.joining(", ")); LOG.warn("Not all required (custom) jira fields have been set. The following are unset: {}", missingFields);
boolean found = false; for (Map.Entry<String, CimFieldInfo> entry : fieldInfoMap.entrySet()) { if (customField.equals(entry.getValue().getId())) { found = true; break;
boolean found = false; for (Map.Entry<String, CimFieldInfo> entry : fieldInfoMap.entrySet()) { if (customField.equals(entry.getValue().getId())) { found = true; break;
String.format(FIELD_ROW_FORMAT, eachField.getName(), eachField.getId(), eachField.isRequired(), isCustom(eachField),
String.format(FIELD_ROW_FORMAT, eachField.getName(), eachField.getId(), eachField.isRequired(), isCustom(eachField),