Project

General

Profile

Deleting the assignee (Python-Redmine)

Added by David Glines about 6 years ago

Hi there,

I'm working on the app to create, delete or update the issue with only Redmine REST API. However, when I'm trying to delete the assignee (or update it) of the issue to blank (http://www.redmine.org/projects/redmine/wiki/Rest_Issues https://github.com/maxtepkeev/python-redmine/issues/133 https://hireessaywriter.org/ blog/programming/python-redmine/), it appears to be still unmodified. Tried redmine.issue.update(123, assigned_to_id='') but it didn't work either. Should I open a feature request?

Thanks
David (Sage Community)


Replies (1)

RE: Deleting the assignee (Python-Redmine) - Added by Mayama Takeshi about 6 years ago

I tested the Redmine API with curl and it works:

takeshi@takeshi-desktop:~$ curl -s -H 'X-Redmine-API-Key: cc07ea38ff9873179554052844cbb30dc150bb4e' -x '' http://redm/issues/5.json  | jq .issue.assigned_to
{
  "id": 5,
  "name": "user1 user1" 
}

takeshi@takeshi-desktop:~$ curl -s -x '' -H 'X-Redmine-API-Key: cc07ea38ff9873179554052844cbb30dc150bb4e' http://redm/issues/5.json -X PUT -H 'Content-Type: application/json' -d '{"issue": {"assigned_to_id": ""}}'

takeshi@takeshi-desktop:~$ curl -s -H 'X-Redmine-API-Key: cc07ea38ff9873179554052844cbb30dc150bb4e' -x '' http://redm/issues/5.json  | jq .issue.assigned_to
null

So I think the issue is with python-redmine.
According to the link
https://github.com/maxtepkeev/python-redmine/issues/133
you referred to,
assigned_to_id=''
should work.
So maybe you are using and old version of python-redmine.

    (1-1/1)