Redmine Development Help

Source: Internet
Author: User
Tags redmine

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.