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

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.

hi shradhha what about the case for non change task i.e i have to show this values for change task(whic is working) and for non prod change task table where i cannot see this in form layout..

Community Alums
Not applicable

Hello @raj765_32 ,

I am not getting your question, could you please elaborate more?

If am not wrong do you need this to be implement for another table?

im saying that we do have a table called as non prod change tasks to where i need to add a same field there but in form layout i cannot see the related project field like seen in change task table, i need the same scenario for non prod change tasks to .