ruby on rails - Redmine REST api [update status] -
i looking @ way automate bug tracking test tools. found: http://www.redmine.org/projects/redmine/wiki/rest_api_with_ruby
which describes way interact rest api in redmine. following able create/update/destroy issues, update simple fields subject or description.(can't update status or priority)
i can't find way change status of bug. the fields can't update "?structures(with attributes)?". has managed , have been doing worng?
i'm assuming you've cloned repository , started looking through code.
there line in issues#update action shows might permissions problem.
@allowed_statuses = @issue.new_statuses_allowed_to(user.current)
ensure user has permissions change status , priority given issue.
i've added example of fields issue 1 of projects.
id: 83, tracker_id: 2, project_id: 8, subject: "comments", description: "add comments trace on list , on graph view...", due_date: nil, category_id: nil, status_id: 1, assigned_to_id: 1, priority_id: 4, fixed_version_id: nil, author_id: 1, lock_version: 0, created_on: "2012-01-23 14:04:11", updated_on: "2012-01-23 14:04:11", start_date: "2012-01-23", done_ratio: 0, estimated_hours: nil, parent_id: nil, root_id: 83, lft: 1, rgt: 2, is_private: false
Comments
Post a Comment