The CreatorCon Call for Content is officially open! Get started here.

Problem task same priority as problem

jthomsen
Tera Contributor

Hi,

I have a requirement that every time a problem task is created it automatically takes over the same priority value as the problem. What is the best way to do that?

1 ACCEPTED SOLUTION

Hi @jthomsen ,

 

try using this onLoad client script. This should set the value for task record with parent record priority as soon as they try to create a record.

 

var value = g_form.getReference('problem', priorityLookup);
	  function priorityLookup(value){
	    g_form.setValue('priority', value.priority);
	  }

 

Thanks,

Danish

 

 

View solution in original post

3 REPLIES 3

Danish Bhairag2
Tera Sage

Hi @jthomsen ,

 

The resolution will depend upon how the Problem task is created in ur case. if its getting created by any script or BR there u can do something like 

current.priority = parent.priority;

 

if u r creating from a flow then in flow u need to set value for priority field of task by selecting priority as field from the dropdown while creating task & in that u can drag drop the priority value from parent.priority record.

 

Thanks,

Danish

 

 

Hi Danish,

Thanks for your quick reply. For now everything is created manually. So ones a Problem management member manually creates a problem task it should automatically have the same priority value as the problem.

Hi @jthomsen ,

 

try using this onLoad client script. This should set the value for task record with parent record priority as soon as they try to create a record.

 

var value = g_form.getReference('problem', priorityLookup);
	  function priorityLookup(value){
	    g_form.setValue('priority', value.priority);
	  }

 

Thanks,

Danish