Add Resolution Information tab in the ticket opened in employee center.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2024 02:31 AM
Expected Functionality:
1. Navigate to All > Standard Ticket > Standard Ticket Configuration and click on incident from the list of records.
2. Change the application scope to Service Portal - Standard Ticket
3. Click New button in the Tab Configurations related list.
4. A new record will be opened select Type as Custom, set visible when incident state is resolved or closed.
5. Navigate to All > Service Portal > widgets and create a new Widget.
6. Add the following codes:
HTML:
<div>
<div>
<h3>Resolution Code: </h3>
<span>{{data.code}}</span>
</div>
<div>
<h3>Resolution Notes: </h3>
<span>{{data.notes}}</span>
</div>
</div>
CSS:
div > div {
margin-bottom: 10px;
}
div > div h3 {
font-size: 16px;
color: #333;
display: inline;
margin-right: 10px;
}
div > div span {
font-size: 14px;
color: #555;
display: inline;
vertical-align: middle;
}
Server script:
The out-of-the-box (OOTB) widget, Standard Ticket Tab, calls the custom widget by passing the table name and sys_id to custom-created widgets. As a result, we can access the values provided by the OOTB widget within our custom widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 02:49 AM
Hey @shivatmika_19 ,
Thanks for this.
I tried it but it does not work. The tab appears but it is all empty.
I added a debug gs.info but nothing is printed, either.
I am not sure if the server script it executed.
Best,
Firat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 06:41 AM
I found why! You just need to fill in the widget id, otherwise the widget is not run. 🙂