Project

General

Profile

Actions

Feature #32002

closed

Add inherit_members to projects API response

Added by Alex Sinav about 5 years ago. Updated about 5 years ago.

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

0%

Estimated time:
Resolution:
Fixed

Description

I didn't found a way to get inherit_members field value of project via REST API.
According to docs - https://www.redmine.org/projects/redmine/wiki/Rest_Projects#Showing-a-project - this field doesn't returned by "GET /projects/[id].xml". But can be updated by "PUT /projects/[id].xml".
Is there a way to get inherit_members of project?

mysql 5.7.27
Ruby version 2.3.1-p112 (2016-04-26)
Rails version 4.2.11.1
Redmine version 3.4.11.stable


Files

fixed-32002.patch (3.73 KB) fixed-32002.patch Yuichi HARADA, 2019-09-05 02:07

Related issues

Related to Redmine - Feature #5605: Subprojects should (optionally) inherit Members from their parentClosedJean-Philippe Lang2010-05-27

Actions
Actions #1

Updated by Go MAEDA about 5 years ago

  • Related to Feature #5605: Subprojects should (optionally) inherit Members from their parent added
Actions #2

Updated by Go MAEDA about 5 years ago

Unfortunately, GET /projects/:id.(xml|json) and GET /projects.(xml|json) don't return inherit_members. I think the APIs should have been updated when the feature was added in Redmine 2.3.0 (#5605).

Actions #3

Updated by Alex Sinav about 5 years ago

So is there plans to update REST API with this feature?

Actions #4

Updated by Yuichi HARADA about 5 years ago

I fixed to return inherit_members for GET /projects/:id.(xml|json) and GET /projects.(xml|json).
I attached a patch.

Actions #5

Updated by Go MAEDA about 5 years ago

  • Tracker changed from Defect to Feature
  • Subject changed from inherit_members field value of project via REST API to Add inherit_members to projects API response
  • Target version set to 4.1.0

LGTM. Setting the target version to 4.1.0.

Actions #6

Updated by Go MAEDA about 5 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for your contribution.

Alex Sinav wrote:

So is there plans to update REST API with this feature?

It will be available in upcoming Redmine 4.1.0, stay tuned. Thank you for reporting this.

Actions #7

Updated by Alex Sinav about 5 years ago

Thank you.

Actions

Also available in: Atom PDF