Defect #6373
closedCan't Set author_id When Creating New Issue Through REST API
Description
I have a web form on a separate site that I have been using with the REST API to create new issues successfully. I have only one problem: when using the REST API as shown below, it appears to not use the author_id that I define. Instead, the new issue always ends up having author_id set to the id of the user that is authenticating with the API.
- Issue model on the client side
class Issue < ActiveResource::Base
self.site = 'http://redmine.server/'
self.user = 'foo'
self.password = 'bar'
end
issue = Issue.new(
:subject => 'REST API',
:assigned_to_id => 1,
:project_id => 1,
:author_id => 4 <--- this gets overwritten by id of 'foo'
)
Is setting the author_id not allowable from the REST API or am I missing something? I also tried changing the user and password dynamically with each new request (i.e. issue.user => 'user', issue.password => 'password' before issue.save gets called), without success.