Feature #9812

set or change author of a issue (via rest api)

Added by Terence Mill over 7 years ago. Updated over 6 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:REST API
Target version:-
Resolution:

Description

We would like to offer redmine integration via html submit form which can run on every web server having a connection to the redmine server and knowing some api key to do that (need additional right to set author?)

Projects want to integrate bug breportimng and feature request form in their web apps, using rest api to sumbit new issues.
The users in all apps (redmine and other apps) use same ldap and so far the user data are the same. If using rest api don't know the api key of the user in which name the app wanna submit the issue, but the issue indeed shall show this user name a author. I tried to set author and update author after the issue was created via rest call. But the author always is and stays as the user which the api keys belongs. I think the cause is "this line":
/projects/redmine/repository/revisions/3310/entry/trunk/app/controllers/issues_controller.rb#L140

The only way to offer this 3rd party web form integration without loosing author information of submitter will need to enable to change the author by a third person. This will need a right to be in a role and then the rest api shall also provide to set the author name.

author_id.patch Magnifier (602 Bytes) Jason Butz, 2013-02-14 17:32

History

#1 Updated by Terence Mill over 7 years ago

related to Feature #1739

#2 Updated by Jason Butz over 6 years ago

It would be nice to be able to set the author when creating an issue with the API. Here is a patch I made that adds the `author_id` to the safe attributes. I'm not a Ruby developer so I don't know if I did it "right", but it works.

Also available in: Atom PDF