Configure incident ticket page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 04:30 AM
I want to add a tab which will display the description of the incident. How can this be done?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 04:38 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 04:45 AM
I need to try.
Though quickest out-of-the-box would be:
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 05:12 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 05:20 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 05:24 AM
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?