Set the option "inherited members" on projects through REST API
I create automatically with the rest api a lot of projects in Redmine.
But we have the problem that for every project we need to set manually the option "inherited members from parent projects" (i don´t know exactly the right spelling). This is very disappointing.
I use for this the PHP Class vom
kbsali --> https://github.com/kbsali/php-redmine-api
This is the snippet how we create a project:
$client->api('project')->create(array( 'name' => $project_name, 'identifier' => $project_identifier, 'tracker_ids' => $tracker_ids, 'parent_id' => $parent_projekt_id));
This work´s nicely. But i want to add something like this:
'inherited members' => true 'inherited members' => 1 'inherited members' => '1'
kbsali told me that as far as he can see this is not supported through the Redmine API.
Here my respone in the github Project vom kbsali for the php class --> https://github.com/kbsali/php-redmine-api/issues/95
#1 Updated by Lucile Quirion almost 3 years ago
- Status changed from New to Closed
- Resolution set to Invalid
I've updated the wiki since kbsali response.
Actually Redmine does support the inherit_members field as stated in Rest_Projects.
You should also refer to Redmine's source code and tests for development purpose.