Configure incident ticket page

vidhya_mouli
Giga Sage

I want to add a tab which will display the description of the incident. How can this be done?

 

 

My-Request-INC0010986-Employee-Center.png

12 REPLIES 12

When I add a tab there, my guess is I need to add a widget to get this. But not sure how to get the sys_id of the incident into the widget.

I need to try.

 

Though quickest out-of-the-box would be:

MarkRoethof_0-1696592708901.png

Would that be an option?

 

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

I suggested that but the client is insisting on separate tab for description. I am planning to create a widget to display the description. But I am not sure how to get the sys_id of the incident.

 

 

Server Side Script:

(function() {
  
	var sysid = "63a62dd0973db950680c3bafe153af3c";
	//var sysId = options.sys_id;
	
	
	var gr = new GlideRecord('incident');
  gr.addQuery('sys_id', sysid);
  gr.query();
	
	/* Get incident discription */
    if (gr.next()) {
		data.displayVal = {
      description: gr.getValue('description')
    };
    }

})();

 

Right now I have hard coded it. But I want it to be dynamic. Any clue how to do it?

The sys ID can be fetched for example by $sp.getParameter('sys_id')


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Thank you that helped. Now I have a different problem. The widget works. But when I insert this widget into a custom tab (Incident ticket page) nothing is displayed. All the other widgets work. Any clue what the problem is?