Retrieve custom fields from plugin

Added by Aniss El Amrani almost 2 years ago

Hi all,

I'm trying to implement a new redmine plugin using custom fields but I'm not able to retrieve a custom field (List) defined in Redmine from the HTML page.
I have tried "issue.custom_field_values" but it is not working.

Do you have any idea how can get a custom field values by name or id ?

Thanks for help.

Regards,

Aniss

Replies (3)

RE: Retrieve custom fields from plugin - Added by Haihan Ji almost 2 years ago

issue.custom_value_for(custom_field_id)
issue.custom_field_value(custom_field_id)

RE: Retrieve custom fields from plugin - Added by Marshall Hoang 8 months ago

Haihan Ji wrote:

[...]

it doesn't work!!

RE: Retrieve custom fields from plugin - Added by Javier Menéndez Rizo 7 months ago

CustomField.find(custom_field_id).possible_values

(1-3/3)