Project

General

Profile

Actions

Feature #16180

closed

Expose Public/Private via API

Added by Stephen Fine over 10 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

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

Is duplicate of Redmine - Feature #10914: Include is_private setting in xml/json output ClosedJean-Philippe Lang

Actions
Actions #1

Updated by Stephen Fine over 10 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

Actions #2

Updated by Go MAEDA almost 8 years ago

  • Is duplicate of Feature #10914: Include is_private setting in xml/json output added
Actions #3

Updated by Go MAEDA almost 8 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Duplicate

Implemented by #10914 (Redmine 2.6.0).

Actions

Also available in: Atom PDF