https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292014-01-22T17:15:58ZRedmineRedmine - Defect #15929: REST API: Integer custom field validation fails when using non-string valueshttps://www.redmine.org/issues/15929?journal_id=544442014-01-22T17:15:58ZVictor Safronov
<ul></ul><p>Just found the way to avoid the error. Integer parameter should be casted to string.<br />It works if submit this data:<br /><pre>
{"issue":{"custom_field_values":{"12":"15"}}}
</pre><br />I really don't understand why Redmine wants numeric string for the number custom field instead of integer</p> Redmine - Defect #15929: REST API: Integer custom field validation fails when using non-string valueshttps://www.redmine.org/issues/15929?journal_id=544912014-01-25T12:08:53ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>Integer custom field fails validation when updated using REST API</i> to <i>REST API: Integer custom field validation fails when using non-string values</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>2.5.0</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Fixed in <a class="changeset" title="REST API: Integer custom field validation fails when using non-string values (#15929)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/12704">r12704</a>, thanks for pointing this out.</p>