I've written a custom field that has a database backing of JSON data. I've written a custom editor for it so that the data comes through the form correctly and gets displayed correctly. I found out also that I had to implement RestAwareCustomFieldType so that JIRA could call into getJsonFromIssue when pulling the custom field data via REST GET method on the issue.
I also found that I had to implement the RestCustomFieldTypeOperations interface so that I could pass a custom rest operation handler object to JIRA via the getRestFieldOperation method. So now I have a handler for my custom field to use when being updated via REST; it extends AbstractCustomFieldOperationsHandler<>. I implemented the updateIssueInputParameters method on that interface so that I can parse out the JSON and update the issue.
When I'm ready to update the issue, I call into inputParameters.addCustomFieldValue(fieldId, ...) where the second parameter is a list of json strings that I want to put into the db for that custom field. It gets called and returns without error, but doesn't seem to properly update the issue at all.
Does anyone have experience using these interfaces (RestCustomFieldTypeOperations and RestAwareCustomFieldType)? It seems there's no real documentation about it, and I'd love further resources...
Thanks.