Incident Task

Aneela Sravani
Tera Contributor

Hello All

I had added incident task to incident form make short description, description and priority auto populated . I am getting some issues

1) If I change priority in incident form  it's auto populating in incident task form but not reflecting on incident task form list view and activity filter.

Tried client scripts but didn't updating priority in list view

 

Can you please help me with this

 

Regards 

Aneela Sravani Gopisetty

10 REPLIES 10

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Aneela Sravani  ,

 

Can u tell us how are you doing this any scripts written. Can u share with us,maybe some snips if possible

 

Thanks,

Danish

 

Hello @Danish Bhairag2 

Thank you for your response

function onLoad() {
//Type appropriate comment here, and begin script below
var inc= g_form.getReference('incident', populate);
function populate(inc){
if(inc.short_description){
g_form.setValue('short_description',inc.short_description);
g_form.setValue('description',inc.description);
g_form.setValue('priority',inc.priority);

}
}
This is the client script I added to make incident details auto populated from incident form to incident task form.

 

Thanks in Advance

Hi @Aneela Sravani  ,

 

The reason for not reflecting it in the list view is because the data is not getting saved in the database. It is only reflecting on form level

 

You can try 3 things here:

  • In your existing code after setting the priority value u can add g_form.save() n check.
  • If the above step does not work please use GlideAjax to update the data in the incident task table n check plz
  • The best one would be to go with after update Business rule. Simple GlideRecord query update will do that trick instead of client script

With the above steps it should resolve it.

 

Thanks,

Danish

 

Sandeep Rajput
Tera Patron
Tera Patron

@Aneela Sravani  Did you save the changes on the incident form? Changes would only reflect on the incident tasks associated with the parent incident. There will not be any change on non related incident tasks.