Project

General

Profile

Actions

Defect #19214

closed

Set the option "inherited members" on projects through REST API

Added by Henry Auffahrt almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

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

Actions #1

Updated by Lucile Quirion almost 10 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Hi,

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.

Regards

Actions #2

Updated by Henry Auffahrt almost 10 years ago

Thanks a lot!

Actions

Also available in: Atom PDF