I am sometimes getting old values from an Issue. Does anyone know why possibly?
Here are the relevant code snippets of how I get an issue:
CustomFieldManager customFieldManager = (CustomFieldManager)ComponentAccessor.getOSGiComponentInstanceOfType(CustomFieldManager.class);
String customFieldId = “customfield_11311”;
CustomField custField = customFieldManager.getCustomFieldObject(customFieldId);
Object valueObj = issue.getCustomFieldValue(custField);
EDIT: The above is what I’m trying now to see if it fixes the issue. The only change is that before I was calling ComponentAccessor.getComponent(). The documentation of the OSGi version mentioned caching in a way that led me to believe that the getComponent() method might return an instance that might be old itself at some point. I am just grasping at straws at this point, however.