To get the value of a field I normal do:
Optional<CustomField> employeeCustomField =getCustomfieldByName(MAILCONTAKT_EMPLOYEE);
String employeeCustomFieldValue = (String) someIssue.getCustomFieldValue(employeeCustomField.get());
And normally it worked.
But now to test it , I cloned the issue with all its subissues.
And I always update the respective field with a new value. Then I clone again and update again the field and so on.
First and second time in the log I saw it retrieved the new value.
But later even if I updated the field value in the issue , I curiously got the old value.
Even if I update again , I still get the old value. So all updating has no more effect.
That already cost me hours and hours. But I really do not know why and how it can still get the old value.