プロジェクト

全般

プロフィール

Vote #80294

完了

Add inherit_members to projects API response

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
127
issue_org_id:
32002
author_id:
414778
assigned_to_id:
332
comments:
7
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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


journals

--------------------------------------------------------------------------------
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).
--------------------------------------------------------------------------------
So is there plans to update REST API with this feature?
--------------------------------------------------------------------------------
I fixed to return @inherit_members@ for @GET /projects/:id.(xml|json)@ and @GET /projects.(xml|json)@.
I attached a patch.

--------------------------------------------------------------------------------
LGTM. Setting the target version to 4.1.0.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Thank you.
--------------------------------------------------------------------------------


related_issues

relates,Closed,5605,Subprojects should (optionally) inherit Members from their parent

Admin Redmine さんが約4年前に更新

  • カテゴリREST API_32 にセット
  • 対象バージョン4.1.0_127 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0