プロジェクト

全般

プロフィール

Vote #71829

完了

Include is_private setting in xml/json output

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
32
version_id:
81
issue_org_id:
10914
author_id:
34919
assigned_to_id:
1
comments:
13
status_id:
5
tracker_id:
2
plus1:
4
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

When getting issues with the REST api, the is_private flag isn't included.

I've solved the problem on my local copy by modifying two files:

  • views/issues/show.api.rsb ** add
    api.is_private @issue.is_private
  • views/issues/index.api.rsb ** add
    api.is_private issue.is_private

journals

+1

Also, can be seen as related to #8577.
--------------------------------------------------------------------------------
#8577 fixes the issue for the issue list, but does not address the problem with including the is_private flag in the json / xml output.
--------------------------------------------------------------------------------
+1
Seems to relate with #10870
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
If we have this really simple solution, why it is not included in current realase?
--------------------------------------------------------------------------------
I would also suggest change this issue track to 'Bug', 'Defect' or something similar, because we can modify this field with PUT request. All Issues obtained with REST api seems to be not private now.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Uploaded a patch to provide this feature.

--------------------------------------------------------------------------------
Feature added in r13395, thanks.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,8577,"Private" column and filter on the issue list
relates,Closed,10870,Private bugs are accessible via the API
duplicates,Closed,16180,Expose Public/Private via API
duplicates,Closed,8353,[REST] privacy information on issue displaying

Admin Redmine さんが3年以上前に更新

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

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

いいね!0
いいね!0