how to pass a list field value from change to change task

raj765_32
Tera Contributor

Hi can anyone please help me with scenario for 

i have created a new field called as ' related project' in change task, i have to pass the value from the change to change tasks .

 

change has ' related project' and change task has related project field.

 

how to pass variable value from change to change task?

1 ACCEPTED SOLUTION

Hi @raj765_32 

Try, display business rule. It will workScreenshot 2023-11-23 at 1.33.34 PM.pngScreenshot 2023-11-23 at 1.33.53 PM.png

Please check and Mark Helpful and Correct if it really helps you.

View solution in original post

4 REPLIES 4

Kalyani Jangam1
Mega Sage
Mega Sage

Hi @raj765_32 

If we create change task from related list of change table then by using default value we can achieve this. In default value set current.change_request.related_project_field name(your related project field backend name)

 

Please try this and Mark Helpful and Correct if it really helps you.

i have written a before business rule and insert and update  in change task table and below the code :

 

(function executeRule(current, previous /*null when async*/) {
 
current.u_related_project = current.change_request.u_related_project;
 
 
})(current, previous);



its not working

Hi @raj765_32 

Try, display business rule. It will workScreenshot 2023-11-23 at 1.33.34 PM.pngScreenshot 2023-11-23 at 1.33.53 PM.png

Please check and Mark Helpful and Correct if it really helps you.

if i set in default value im getting like this