Feature #16180
closedExpose Public/Private via API
0%
Description
I am trying to extend the API to return the "private" journal field.
The API obeys user authentication with displaying whether or not the journal is returned but I would like to know if the note is private if it is returned.
The issues_controller.rb file seems to use the standard format.api method (line 128) but that does not return this field.
Is there any easy way to force this?
Related issues
Updated by Stephen Fine almost 11 years ago
- Status changed from New to Resolved
Soln is as follows for anyone that needs it:
diff -r redmine-2.4.3/app/views/issues/index.api.rsb redmine-2.4.3_updated/app/views/issues/index.api.rsb
26a27,28
api.is_private issue.is_private
diff -r redmine-2.4.3/app/views/issues/show.api.rsb redmine-2.4.3_updated/app/views/issues/show.api.rsb
19a20
api.is_private @issue.is_private
Updated by Go MAEDA about 8 years ago
- Is duplicate of Feature #10914: Include is_private setting in xml/json output added
Updated by Go MAEDA about 8 years ago
- Status changed from Resolved to Closed
- Resolution set to Duplicate
Implemented by #10914 (Redmine 2.6.0).