Project

General

Profile

Actions

Defect #10765

closed

REST API BUG 1.4.1 : create issue author_id tag not working

Added by Manu Z. almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hello,

I am integrating redmine issues via the REST API in an application to propose to my users to create issues and follow up their issues.
I would like to have only one master API key to handle all requests (a key mapped on a user with appropriate admin rights).
It works just fine to create, update, delete users, get issue list.

When it comes to create issues there is a problem.
Each of my users has a redmine user id, and I would like this redmine user id to be set as the new issue author id, while using the master API key to create the issue.
But the issue is created with the author being the master user (who's API key is used for the request), whatever the syntax used in the XML posted.
E.g.: <author><id>3</id></author>, <author_id>3</author_id>,<author id="3"></author>

In the manual it is said that the following tags can be used in the create issue request:

description
category_id
assigned_to_id - ID of the user to assign the issue to (currently no mechanism to assign by name)
status_id
parent_issue_id - ID of the parent issue
...

I would like to know what is hidden being those ...

=> Is the author_id not an option?
=> Is the behavior I describe normal?

Thanks

Environment info:
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.1.3
Rails version 2.3.14
Active Record version 2.3.14
Active Resource version 2.3.14
Action Mailer version 2.3.14
Active Support version 2.3.14
Application root /usr/share/redmine
Environment production
Database adapter mysql
Database schema version 20120301153455

Actions #1

Updated by Jean-Philippe Lang almost 12 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

The author_id is not an option. It is automatically set to the current user, for instance the user whose API key you're using.

Actions

Also available in: Atom PDF