プロジェクト

全般

プロフィール

Vote #80973

未完了

REST API does not allow unassigning user

Admin Redmine さんが約2年前に追加. 約2年前に更新.

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

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
33744
author_id:
465521
assigned_to_id:
0
comments:
2
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
160
ステータス-->[New]

説明

Hi there,

assigning a different user using the JSON REST API works perfectly on 4.1.1.stable when we assign to a specific user ID.

However, when trying to unassign a user, the request is simply ignored. I tried putting null, 0, -1 or "" as the user ID, but nothing works; I believe this to be a defect.

Best,
Johannes


journals

I was able to unassign the Assignee with the following REST-API command, referring to [[Rest_Issues#Updating-an-issue]].

<pre><code class="shell">
curl -X PUT -H "Content-Type: application/json" -H "X-Redmine-API-Key: <API KEY>" -d '{"issue": {"assigned_to_id": ""}}' http://127.0.0.1:3000/issues/1.json
</code></pre>

If you can't update with the above command, it is possible that *Edit issues* permission is disabled for the user running the command.
--------------------------------------------------------------------------------

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


related_issues

duplicates,Closed,33877,REST API: No way of removing Assigned To when Issue is assigned

Admin Redmine さんが約2年前に更新

  • カテゴリREST API_32 にセット

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

いいね!0
いいね!0