Done
Details
Details
Assignee
Pavlo Smahin
Pavlo SmahinReporter
Jon Miller
Jon MillerLabels
Priority
Story Points
5
Sprint
None
Development Team
Spitfire
Fix versions
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created June 24, 2020 at 6:30 AM
Updated November 17, 2020 at 7:28 PM
Resolved July 23, 2020 at 2:13 PM
I'm not sure if this is a bug. Maybe I just don't understand what the refId field for custom fields is used for. Is it supposed to be the name of the JSON property that you use in the customFields property? I.e. If I define the following custom field,
do, I use the following JSON when setting the value when inserting/updating a user?
If so, the - and _ characters could be problematic. I think underscore would be fine, but, dash is problematic because the developer who is generating the JSON, may be using a language where - isn't a valid character for an identifier. For example, I'm using C# and I usually define my JSON as an object graph of dynamic objects. Then, I serialize the object to a string.
I'm just guessing that refId is used as the JSON property name. I'm running a version of FOLIO that doesn't yet have full support for custom fields. So, I am guessing.
Nonetheless, it would be helpful if there was an indication as to what the property names should be.
Also, if it is used for JSON property names, it would be nice if the _1 counter variable at the end of the identifier was only used when needed (when there is already a field with the same name).