how to pass a field value from change to change task

raj765_32
Tera Contributor

Hi cana nyone help me with scenario for there is a field called as ' related project; in change form and its a list type field and my requirment is that i have created ' related project' in change task, the value what ever is in chnage form related change record should be visible in related chang tasks record..

 

i have written a before business rule with insert and update , but it is not working. and given condition as related project changes :

 

(function executeRule(current, previous /*null when async*/) {

current.u_related_project = current.change_request.u_related_project;


})(current, previous);

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hello @raj765_32 ,

 

If you want same value from change form to change task form then on Change task form take field of change form using form layout then no need to write separate script for it.

 

1) Navigate to Change Request >> go to change task related list 

2)Open change task record.

3)Go to form layout of change task.

4)Select related project field(Field needs to be selected from change request field.) on right Selected bucket list.

5)save the changes.

6)Select value in related project field of change request then open the related change task you will be able to see the value populated on change_task.

 

Please see attached screenshots.

View solution in original post

5 REPLIES 5

Community Alums
Not applicable

Hey @raj765_32 ,

If there is Parent and child relation between the tables then you will be able to see the fields on form layout otherwise field will not be visible.

 

Let me know in detail requirement with required screenshot then may be I can help you out.