Project

General

Profile

Redmine REST API possibility to select columns in response

Added by Daniel Harcek over 11 years ago

Hi all,
I would like to enumerate columns, which to get in Redmine API response when I search for issues. In other words, I would like to achieve, that the issue object in response will have only specified fields.

Redmine API documentation does not mention that this is possible, but since most of the stuff you can do when defining a custome query is doable also via API, I was hoping that this is possible as well.

I have tried to include in url params for get request stuff like

add fields=project,assigned_to,priority,project,tracker

or

columns=project,assigned_to,priority,project,tracker

or

column_names=project,assigned_to,priority,project,tracker

And much more experiments but nothing worked.

Is there a way how to do this? Or should the API be extended in a certain way to be capable to accomplish such functionality? If it is about extending, can you please point me the right direction which class to look. I tried to explore the code but I am not very experienced with RoR.

Thank you for your the answer.