Hi Juliana,



In my case, the operator has to choose the correct item in order to recategorize. Each of the items has different variables, so I am not sure how you can take incident fields and fill-in the variables, unless you have only one item you recategorize to.


However, I noticed I missed a part of the process when I replied. I also have a BR:



Table: Requested item [sc_req_item]


Name:   Data from recategorisatio


When: before insert


Condition: !current.request.parent.nil()


Script:


current.u_recategorized_from = current.request.parent.number;


current.comments = current.variables.description + "\n" + "Task short description: " + current.request.parent.short_description + "\n Task description: " + current.request.parent.description;


current.variables.description = current.variables.description + "\nTask short description: " + current.request.parent.short_description + "\nTask description: " + current.request.parent.description;


current.variables.requested_for = current.request.parent.caller_id; //



Note the last line - this is a variable I have. You can fill out your variables by using current.variables.<VARIABLE_NAME> = current.request.parent.<FIELD_NAME>



De nada,


harel