Feature #10914
Include is_private setting in xml/json output
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | REST API | |||
Target version: | 2.6.0 | |||
Resolution: | Fixed |
Description
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
- add
- views/issues/index.api.rsb
- add
api.is_private issue.is_private
- add
Related issues
Associated revisions
Issue API: include is_private attribute in xml/json output (#10914).
Patch by Shivam Daryanani.
History
#1
Updated by Ingo Linde about 10 years ago
+1
Also, can be seen as related to #8577.
#2
Updated by Cory Riddell over 9 years ago
#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.
#3
Updated by d okumura almost 9 years ago
+1
Seems to relate with #10870
#4
Updated by Toshi MARUYAMA almost 9 years ago
- Related to Feature #8577: "Private" column and filter on the issue list added
#5
Updated by Toshi MARUYAMA almost 9 years ago
- Related to Defect #10870: Private bugs are accessible via the API added
#6
Updated by Benoit Duffez about 8 years ago
+1
#7
Updated by Wojciech Brzeziński almost 8 years ago
+1
If we have this really simple solution, why it is not included in current realase?
#8
Updated by Wojciech Brzeziński almost 8 years ago
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.
#9
Updated by Jean-Philippe Lang almost 8 years ago
- Target version set to 2.6.0
#10
Updated by Shivam Daryanani almost 8 years ago
- File Adds-issue-is_private-to-api.diff
added
Uploaded a patch to provide this feature.
#11
Updated by Jean-Philippe Lang almost 8 years ago
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Resolution set to Fixed
Feature added in r13395, thanks.
#12
Updated by Go MAEDA over 5 years ago
- Duplicated by Feature #16180: Expose Public/Private via API added
#13
Updated by Go MAEDA over 5 years ago
- Duplicated by Feature #8353: [REST] privacy information on issue displaying added