Project

General

Profile

Actions

Defect #6373

closed

Can't Set author_id When Creating New Issue Through REST API

Added by Scott Doerrfeld about 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
2010-09-12
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

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.

  1. 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.


Related issues

Related to Redmine - Feature #1739: Add ability to change issue authorReopenedGo MAEDA2008-08-04

Actions
Actions

Also available in: Atom PDF