I created new Custom Field and in the implementation of any methods
validateFromParams() or getSingularObjectFromString()
I would like to get the values of the other custom fields,
but the values which are just typed in the forms and not taken directly from the database
like example below:
IssueManager issueManager = ComponentManager.getInstance().getIssueManager();
CustomFieldManager customFieldManager = ComponentManager.getInstance().getCustomFieldManager();
Issue issue = issueManager.getIssueObject("JIRA-123");
So I have a list of all the custom fields:
List<CustomField> customFields = customFieldManager.getCustomFieldObjects();
for (CustomField element : customFields) {
System.out.println(
element.getFieldName() + "\n" + element.getId() + "\n"
+ "VALUE: " + element.getGenericValue() + "\n"
+ "============================="
);
}
but I cannot see the method for getting value (getGenericValue() doesn't return it).
Do you know any solutions for it?
Michal