Project

General

Profile

Actions

Defect #33744

open

REST API does not allow unassigning user

Added by Johannes Bauer over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

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


Related issues

Has duplicate Redmine - Defect #33877: REST API: No way of removing Assigned To when Issue is assignedClosed

Actions
Actions #1

Updated by Yuichi HARADA over 4 years ago

I was able to unassign the Assignee with the following REST-API command, referring to Rest_Issues.

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

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

Actions #2

Updated by Holger Just over 4 years ago

  • Has duplicate Defect #33877: REST API: No way of removing Assigned To when Issue is assigned added
Actions

Also available in: Atom PDF