Here are the first few two times the development of the use of knowledge points:
1. Get the custom content, refer to this article:
Every customizable Redmine object custom_field_values
has field, that's value is array of CustomFieldValue
. Customfieldvalue contains current value, custom field description and customized object.
Needed values I reads and alters by sort out. May is it's not the best variant, but I acquainted with Ruby language wasn't so long ago.
Method for reading custom fields values:
DefObject_custom_field_value (object, Field_name object.. Each do || if Field.. Name == Field_name return field value end endend
And for changing:
DefObject_custom_field_set_value(Object, Field_name, Value) Span class= "PLN" > object.. Each do || if Field.. Name == Field_name field. Value = value end end< Span class= "PLN" >end
Redmine Development Help