I am experimenting with the value function for Forge custom fields, but I am not clear what it is supposed to return.
The docs say:
The values returned must be compatible with the format expected by the Edit Issue REST API operation.
I am not sure what this is supposed to mean. Is it referring to the request body spec or the fields object inside the request body?
I tried to implement a number field based on this example (which just returns an array of numbers - one for each issue) but that did not work. The Jira field keeps showing as “The app’s value function returned an unexpected response”.
Does anyone have any pointers on how to make this work? Also, if someone from Atlassian reads this, could you please clarify the documentation with a precise definition of what value functions are supposed to return?