I am using Redmine 2.1 and I am writing a custom plugin. I am trying to access the value of a custom field on an issue.
def controller_issues_edit_before_save(context = {})
issue = context[:issue]
add_assignee(issue)
end
I am getting my issue then I pass it to a custom function.
private
def add_assignee(issue)
add_watcher_to_issue(issue, issue.custom_field_values {'bob'})
end
I don't seem able to get the value of my custom field bob
. bob
is a user field.
How do I get the value of my custom field?