Page 1 of 1

Error updating enumeration custom field via rest api

Posted: 06 Jun 2018, 08:02
by ninja-tester
I'm trying to update an issue with an enumeration type custom filed and get the error:

Code: Select all

Response{protocol=http/1.1, code=400, message=Invalid value for custom field 'Субъект РФ', url=http://localhost/api/rest/issues/24579}
When I updating other custom fields (not an enumaration, but usual text fields) it works fine.
How to update enumeration custom fileds values via rest api?

Sending data has that format:

Code: Select all

 \"custom_fields\":\n  [\n {\n \"field\": {\n \"id\":\"30\"\n  },{\n \"name\":\"Субъект РФ\"\n },\n\"value\": \"16 Республика Татарстан (Татарстан)\"\n    }\n  ] 
MantisBT Version 2.13.0
Schema Version 209

Re: Error updating enumeration custom field via rest api

Posted: 06 Jun 2018, 08:58
by atrol
I have no time to have a deeper look at this, but I recommend to upgrade Mantis to 2.15.0 as we fixed some REST API related bugs since 2.13.0.