Actions
Feature #16115
openWatch REST API (Differ Watcher)
Status:
New
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Description
I want you to support the REST API to watch the issue of their own.
I thought to be able to add your own watcher API, but could not.
Status 200 is returned but the data has not been registered.
(Users with the permission add/delete watcher)
Started POST "/redmine24/issues/576/watchers.json" for 182.171.250.224 at 2014-02-18 11:47:35 +0900 Processing by WatchersController#create as JSON Parameters: {"object_type"=>"issue", "object_id"=>"576"} (0.9ms) SELECT MAX(`settings`.`updated_on`) AS max_id FROM `settings` Setting Load (0.8ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'rest_api_enabled' LIMIT 1 User Load (0.8ms) SELECT `users`.* FROM `users` WHERE `users`.`type` IN ('User', 'AnonymousUser') AND `users`.`login` = 'dev02' SQL (34.2ms) UPDATE `users` SET `last_login_on` = '2014-02-18 11:47:35' WHERE `users`.`type` IN ('User', 'AnonymousUser') AND `users`.`id` = 15 Current user: dev02 (id=15) Issue Load (0.6ms) SELECT `issues`.* FROM `issues` WHERE `issues`.`id` = 576 LIMIT 1 Project Load (0.7ms) SELECT `projects`.* FROM `projects` WHERE `projects`.`id` = 15 LIMIT 1 SQL (2.5ms) SELECT `enabled_modules`.`name` FROM `enabled_modules` WHERE `enabled_modules`.`project_id` = 15 SQL (1.0ms) SELECT DISTINCT `members`.id FROM `members` LEFT OUTER JOIN `projects` ON `projects`.`id` = `members`.`project_id` LEFT OUTER JOIN `member_roles` ON `member_roles`.`member_id` = `members`.`id` LEFT OUTER JOIN `roles` ON `roles`.`id` = `member_roles`.`role_id` WHERE `members`.`user_id` = 15 AND `members`.`project_id` = 15 AND (projects.status<>9) ORDER BY projects.name LIMIT 1 SQL (1.3ms) SELECT `members`.`id` AS t0_r0, `members`.`user_id` AS t0_r1, `members`.`project_id` AS t0_r2, `members`.`created_on` AS t0_r3, `members`.`mail_notification` AS t0_r4, `projects`.`id` AS t1_r0, `projects`.`name` AS t1_r1, `projects`.`description` AS t1_r2, `projects`.`homepage` AS t1_r3, `projects`.`is_public` AS t1_r4, `projects`.`parent_id` AS t1_r5, `projects`.`created_on` AS t1_r6, `projects`.`updated_on` AS t1_r7, `projects`.`identifier` AS t1_r8, `projects`.`status` AS t1_r9, `projects`.`lft` AS t1_r10, `projects`.`rgt` AS t1_r11, `projects`.`inherit_members` AS t1_r12, `roles`.`id` AS t2_r0, `roles`.`name` AS t2_r1, `roles`.`position` AS t2_r2, `roles`.`assignable` AS t2_r3, `roles`.`builtin` AS t2_r4, `roles`.`permissions` AS t2_r5, `roles`.`issues_visibility` AS t2_r6 FROM `members` LEFT OUTER JOIN `projects` ON `projects`.`id` = `members`.`project_id` LEFT OUTER JOIN `member_roles` ON `member_roles`.`member_id` = `members`.`id` LEFT OUTER JOIN `roles` ON `roles`.`id` = `member_roles`.`role_id` WHERE `members`.`user_id` = 15 AND `members`.`project_id` = 15 AND `members`.`id` IN (159) AND (projects.status<>9) ORDER BY projects.name Rendered text template (0.0ms) Completed 200 OK in 167.7ms (Views: 5.0ms | ActiveRecord: 50.8ms)
Database Manager MySQL : 5.6.10 Environment: Redmine version 2.4.1.stable Ruby version 1.9.3-p385 (2013-02-06) [x86_64-linux] Rails version 3.2.15 Environment production Database adapter Mysql2 SCM: Subversion 1.6.11 Git 1.7.11.3 Filesystem Redmine plugins: no plugin installed
Watch yourself in the WEB can even if there is no watcher permission.
But I get an error that there is no permission in watcher REST API.
Thanks!
Files
No data to display
Actions