Project

General

Profile

Actions

Defect #25635

closed

Fill/update customer field in workflow

Added by Krzysztof Śliwa about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi,

I've added few customer fields (data type) to my issue view. Now I would like to fill thous fields with some date in workflow.

I was looking for resolution but without success.
I tried to assign new value to customer field no 6 like that:

custom_field_values.each do |value|
    if value.custom_field_id==6
      value.to_s="test" 
    end
  end  

or like that :
custom_field_values[6] = "test"

but it is not working. I cannot find any method to do this.

Can you give me some advice?

best regards

Actions #1

Updated by Krzysztof Śliwa about 7 years ago

  • Status changed from New to Resolved

OK, the resolution is easy.

just have to use @issue.custom_field_values=({6=>'test'})

Actions #2

Updated by Toshi MARUYAMA almost 7 years ago

  • Description updated (diff)
Actions #3

Updated by Toshi MARUYAMA almost 7 years ago

  • Category deleted (Custom fields)
  • Status changed from Resolved to Closed
  • Resolution set to Invalid
Actions

Also available in: Atom PDF