Feature #16180

Expose Public/Private via API

Added by Stephen Fine about 4 years ago. Updated about 1 year ago.

Status:ClosedStart date:
Priority:UrgentDue date:
Assignee:-% Done:


Category:REST API
Target version:-


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

Duplicates Redmine - Feature #10914: Include is_private setting in xml/json output Closed


#1 Updated by Stephen Fine almost 4 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

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

api.is_private @issue.is_private

#2 Updated by Go MAEDA about 1 year ago

  • Duplicates Feature #10914: Include is_private setting in xml/json output added

#3 Updated by Go MAEDA about 1 year ago

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

Implemented by #10914 (Redmine 2.6.0).

Also available in: Atom PDF