I want to add a new option to a custom field from an issue. For example, when an issue is created and a field contains the value "Milk", I want that value to be added as an option to the "Groceries" custom field.
How can I achieve this? Can it be done using ScriptRunner or another approach?