Issues with Enhancement and Defect records are not showing in an Incident related list

yltsai
Mega Guru

To all experts,

My team received a request to allow users to create defects or enhancements from an incident. It sounds very straightforward.

SN version: Helsinki

My team activated Create Defect and Create Enhancement UI actions from the Incident. We also configured the related lists for the Incident form.

Defect -> parent

Enhancement -> parent

We experienced some unwelcome behaviors in the ServiceNow.

1. A new Defect is created but the message shows "undefined" and the record does not show up in the parent Incident's related list. We have to click on Edit to manually select the defect.

Can anyone provide a solution to fix the missing records in the related list?

2. A new Enhancement is created and it is not showing in the parent incident's related list. Similarly, we have to manually select the enhancement.

Can anyone provide a solution to fix the missing records in the related list?

I have researched many community posts but they are not very relevant to my issues.

Thank you, all.

1 ACCEPTED SOLUTION

Michael Fry1
Kilo Patron

Looks like the UI action doesn't populate the Parent field, which is the tie back to the Incident.   I modifying the UI action: Create Defect and added:


task.parent = current.sys_id;


Script to show where I added it, check it out, but assume Create Enhancement will have the same issue:


Screen Shot 2017-04-11 at 5.29.10 PM.png


View solution in original post

2 REPLIES 2

Michael Fry1
Kilo Patron

Looks like the UI action doesn't populate the Parent field, which is the tie back to the Incident.   I modifying the UI action: Create Defect and added:


task.parent = current.sys_id;


Script to show where I added it, check it out, but assume Create Enhancement will have the same issue:


Screen Shot 2017-04-11 at 5.29.10 PM.png


Thank you. That's what we are looking for.