Project

General

Profile

Querying on Custom Fields

Added by Lenny Basuino over 10 years ago

What is the Rails way of retrieving the custom fields, name and values, from an issue?


Replies (1)

RE: Querying on Custom Fields - Added by Lenny Basuino over 10 years ago

Think I got it:

having the issue record:

issue.custom_field_values.each do |cf|
cf.custom_field.name
cf.value
end

(pseudocode above just shows how to access the custom field name and value)

    (1-1/1)