How set the option"inherited members" for projects with the rest-api from Redmine

305 views Asked by At

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.

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' => $produktions_projekt_id));

This work´s nicely. But i want to add something like this:

'inherited members' => true
'inherited members' => 1
'inherited members' => '1'

I tried these three options, but they didn´t worked. I hope someone of you can help me with this problem?

Thanks a lot!

1

There are 1 answers

3
Nanego On

Try to add it this way:

:inherit_members => '1'