How to auto populate Problem details into Problem task?

prasannakumard
Tera Guru

Hi Team,

I've idea about writing BR/UI actions to auto populate the Problem details to Problem task.

 

But, please let me know how to auto populate Problem details into Problem task when click on New in Problem task related list.

1- When click on New, it redirect to following page:

prasannakumard_0-1707370414090.png

 

2- I'm trying to Populate details by editing the Interceptor, Where I opened the "General" Answer and it looks like below:

prasannakumard_1-1707370600863.png

Please let me know how to write script in "Script" field? Any one having idea how to write script here for Auto populate problem details into Problem task.

 

Thanks & Regards,

Prasanna Kumar

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

Hi @prasannakumard ,

 

When you create a problem task, that holds a relationship to your problem record using the "Problem" attribute shown below:

shloke04_0-1707375645377.png

 

 

Solution proposed:

1. Write a Display BR on Problem Task table and use the script below:

shloke04_1-1707375830430.pngshloke04_2-1707375841341.png

 

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

	// Add your code here
	current.assigned_to = current.problem.assigned_to;
	current.short_description = current.problem.short_description;

})(current, previous);

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

1 REPLY 1

shloke04
Kilo Patron

Hi @prasannakumard ,

 

When you create a problem task, that holds a relationship to your problem record using the "Problem" attribute shown below:

shloke04_0-1707375645377.png

 

 

Solution proposed:

1. Write a Display BR on Problem Task table and use the script below:

shloke04_1-1707375830430.pngshloke04_2-1707375841341.png

 

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

	// Add your code here
	current.assigned_to = current.problem.assigned_to;
	current.short_description = current.problem.short_description;

})(current, previous);

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke