Vote #71829
完了Include is_private setting in xml/json output
0%
説明
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