プロジェクト

全般

プロフィール

Vote #76183

完了

Creating an issue without tracker_id attribute ignores custom field values

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
92
issue_org_id:
19368
author_id:
7834
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
80
ステータス-->[Closed]

説明

this is a regression in 3.0.0 from 2.6.x:

when creating new issues via REST API (specifically, I am using Redmine Java API library), I see
the standard JSon payload I used with Redmine 2.6.x is not accepted anymore:

{"issue":
{"subject":"test for custom multi fields - set multiple values",
"project_id":369,
"start_date":null,
"custom_field_values":{"3":["V1","V3"]}
}
}

the server ignores values V1, V3 and assigns default V2 value to that multi-line custom field.

see test setMultiValuesForMultiLineCustomField() in
https://github.com/taskadapter/redmine-java-api/blob/master/src/test/java/com/taskadapter/redmineapi/IssueManagerTest.java


journals

The problem is not about your JSON nor the multivalued custom field. This is due to the fact that you don't provide a tracker_id attribute. This is fixed in r14083.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリREST API_32 にセット
  • 対象バージョン3.0.1_92 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0