Redmine REST api [update status]

I am looking at a way to automate bug tracking with test tools. I found: http://www.redmine.org/projects/redmine/wiki/Rest_api_with_ruby

which describes a way to interact with the REST api in Redmine. Following it I am able to create/update/destroy issues, but update just simple fields like subject or description.(can't update status or priority)

I can't find a way to change the status of a bug. All the the fields i can't update are "?structures(with attributes)?". Has someone managed to do it and what could i have been doing worng?

Answers


I'm assuming that you've cloned the repository and started looking through the code.

There is a line in the Issues#update action that shows that it might be a permissions problem.

@allowed_statuses = @issue.new_statuses_allowed_to(User.current)

Ensure that the user has permissions to change status and priority for a given issue.

I've added an example of all fields for an Issue from one of my projects.

id: 83, 
tracker_id: 2, 
project_id: 8, 
subject: "Comments", 
description: "Add comments to the trace on list and 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

Need Your Help

How would I open multiple files inside a folder without including the exact file path for each file?

.net windows powershell batch-file cmd

I want to write a script that will open all the files in a certain folder. There are many files to open and it would be more tedious to type each one of the file paths out in a batch file. Is there...

Using OData with POCO

.net wcf web-services odata

Is it possible to use OData with POCO or is it limited to just LinqToEntities?