Forums » Development »
Retrieve custom fields from plugin
Added by Aniss El Amrani over 8 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 over 8 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 about 7 years ago
Haihan Ji wrote:
[...]
it doesn't work!!
RE: Retrieve custom fields from plugin - Added by Javier Menéndez Rizo about 7 years ago
CustomField.find(custom_field_id).possible_values