Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redmine assign_to_id set to string me but no assignee set. #133

Closed
DhruvParanjape opened this issue May 18, 2016 · 8 comments
Closed

Redmine assign_to_id set to string me but no assignee set. #133

DhruvParanjape opened this issue May 18, 2016 · 8 comments
Assignees
Labels

Comments

@DhruvParanjape
Copy link

as described. no error either.

@maxtepkeev maxtepkeev self-assigned this May 19, 2016
@maxtepkeev
Copy link
Owner

maxtepkeev commented May 19, 2016

It should be assigned_to_id not assign_to_id, see docs.

@DhruvParanjape
Copy link
Author

oops my bad it was assigned_to_id. when giving string 'me' as value it sets nothing to assignee but with assignee id it sets the correct assignee.

@DhruvParanjape
Copy link
Author

Oh wait my bad it seems it doesnt set assignee to api key user for issue creation when assigned_to_id is set to string me

@maxtepkeev
Copy link
Owner

maxtepkeev commented May 19, 2016

I've tried and it doesn't work for me either. I've consulted Redmine REST API docs and came to the conclusion that it shouldn't work, have a look at docs, here it says "assigned_to_id - ID of the user to assign the issue to (currently no mechanism to assign by name)" (nothing about me though).

Me does work when retrieving issues though, docs - "assigned_to_id: get issues which are assigned to the given user id. me can be used instead an ID to fetch all issues from the logged in user (via API key or HTTP auth)".

So, because python-redmine is just a client to a redmine, I can do nothing about it, you have to open a feature request at their forum for this.

@DhruvParanjape
Copy link
Author

Yup realized that thanks for the help.

@thanhpham310
Copy link

thanhpham310 commented Feb 27, 2018

Could you please help me, I try to delete assignee from an issue by following code, but assignee of issue is not deleted.
PUT /issues/10.xml
body content:
<?xml version="1.0"?>
<issue>
<assigned_to_id></assigned_to_id>
</issue>
Please show me the way that I can delete assignee of issue by rest api?

@fmonera
Copy link

fmonera commented Mar 3, 2018

Deleting the asignee is not working for me too:

self.currentIssue.assigned_to_id = None
self.currentIssue.save()

The asignee is unmodified.

@maxtepkeev
Copy link
Owner

@fmonera You should set it to an empty string, this way it works:

self.currentIssue.assigned_to_id = ''
self.currentIssue.save()

Since it's becoming a popular question I will make it possible to set this one to None and 0 as well and it will be convereted to '' automatically since that's what Redmine's JSON REST API is demanding for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants