anteo / redmine_custom_workflows

Allows to create custom workflows for Redmine
http://www.redmine.org/plugins/custom-workflows
GNU General Public License v2.0
182 stars 72 forks source link

How can I copy custom fields values "id 2" to "id 55"? #271

Closed cbmarchetti closed 2 years ago

cbmarchetti commented 2 years ago

I need to create a baseline of the custom field "2" so that I can compare it with the custom field "55"

AFTER SAVE if @issue.status_id == 1 && @issue.tracker_id == 4 * custom_field_value(55) = custom_field_value(cfs[2].try(:position))*** end

cbmarchetti commented 2 years ago

if @issue.status_id == 1 && @issue.tracker_id == 4 if custom_field_value(2) != custom_value_for(2).try(&:value) self.custom_field_values = { '55' => @cf_key.to_s } self.save_custom_field_values end end

AirTibu commented 2 years ago

Hi,

What does it mean the "baseline" exactly? What is the type of custom_fields (text, number or list)? Are multiple values allowed for custom_fields?