Project

General

Profile

Actions

Defect #11362

closed

Redmine API - "Title Version Type is not included in the list"

Added by Michael Bisbjerg almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

We had to map a series of values in our Redmine installation for all our issues. I opted to write a small script to simply iterate, map and call the XML api to set the issues to their new values.

Sometimes however, I got a response like this (HTTP Status Code 422):

<?xml version="1.0" encoding="UTF-8"?>
<errors>
  <error>Title Version Type is not included in the list</error>
</errors>

I called the API like this:

<?xml version="1.0" encoding="utf-8"?>
<issue>
<custom_field_values>
<3>Utilities &gt;&gt; Various</3>
</custom_field_values>
</issue>

(Which btw. is invalid XML as pr. issue #6345, but the docs don't explain how to do it otherwise)


I called the API a total of roughly 470 times, and 80 or so failed with the above error.
Sometimes, I would notice two calls, exactly alike (setting the same new value), where one would give the error - and the other wouldn't.

Actions

Also available in: Atom PDF