I’m playing with ScriptRunner’s dynamic forms feature (https://scriptrunner.adaptavist.com/latest/jira/dynamic-forms.html). It has a FieldPicker option, which returns a Field object (system or custom).
But how do I retrieve field value in a generic way?
The Issue interface (Issue (Atlassian JIRA - Server 8.1.0 API)) doesn’t seem to have any methods that take a Field, only CustomField. For system fields it seems to be missing a generic getFieldValue(Field f) or getFieldValue(String fieldName)… I have to use the specific method for each one instead like getSummary() and getPriority().
Is there a way to make use of a Field object to get its value?