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

Help, how to change a value of custom field to NULL. #171

Closed AdelRS closed 4 years ago

AdelRS commented 4 years ago

Hi,

How to change a value of custom field to NULL. In this case is field 47, is a check box. check box conf

if (custom_field_value(47)=="1") self.status_id=16 self.assigned_to_id=custom_field_value(89) end if (custom_field_value(91)=="1") self.status_id=17 end if (custom_field_value(91)=="0") self.status_id=6 self.assigned_to_id=custom_field_value(90) issue.custom_field_values = {'47' => ""} end

Thanks in advance.

AdelRS commented 4 years ago

I found the mistake, sorry:

if (custom_field_value(47)=="1") self.status_id=16 self.assigned_to_id=custom_field_value(89) end if (custom_field_value(91)=="1") self.status_id=17 end if (custom_field_value(91)=="0") self.status_id=6 self.assigned_to_id=custom_field_value(90) self.custom_field_values = {'47' => ""} end