- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2023 01:02 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2023 01:23 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2023 01:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2023 01:14 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2023 01:23 AM
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