How to create a widget to show the list of Incident caused by Change?

Virendra K
Kilo Sage

Hi All,

 

As per the requirement, I want to create a widget that shows the list of Incidents caused by a Change, displayed under the "Closure Information" tab of the Change Request. The section should be visible only if there are associated Incidents.

Is there an existing widget that can be cloned, or do I need to create a new one for this?

 

I am not an expert in Portal development, so any detailed guidance would be helpful.

 

Thanks 

Virendra 

 

 

7 REPLIES 7

Hi @Virendra K 

Out of the box (OOTB), the portal only supports viewing and creating Standard Change requests.

For other change types, you'll need to build a custom widget, which involves:

  • Front-end development (CSS/HTML)

  • Server-side scripting

  • Logic to display only those incidents related to the logged-in user

  • Searching the many-to-many (M2M) relationship table to check if any changes are linked to those incidents

  • Verifying and handling the required roles and permissions

This would require significant customization, both in terms of effort and ongoing maintenance.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thanks @Dr Atul G- LNG 

Shall we clone and use Simple List widget ? 

You can give this a try, mate. But the main issue is how you show the change linked to the incident. If there’s more than one change linked to a single incident, it will result in multiple rows for the same incident. Try cloning it and check to confirm.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************