- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2023 02:31 AM
Hello all,
I want to display severals fields concerning the SLA (business_duration, business time left, start time, stop time) of an incident on employee center portal when displaying an incident with the standard ticket configuration module.
I have created a new tab "SLA" and try with a custom tab configuration.
I've tried to create a widget but I don't seem to be able to change the table to display the "task_sla" table. (the log doesn't work into this widget, I don't know why).
Thanks for your help !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2023 04:46 AM
Hi Jonathan,
You are using options.table and option.sys_id in this widget it is always going to return table as incident and sys_id as incident record sys_id so try to give different name while passing the parameters like incident_sysId
You can also use the widget without passing the parameters as while query you can use 'task_sla' table and by using using options.sys_id you will get incident's sysid
And
Use grSLA.getValue('business_duration') instead of grSLA.businessDuration it retrieves the field properly
TAb Configuration:
 Server Script:
 SLA Tab on Incident Record:
 
Hit Helpful if it helps you
Regards,
Uday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2023 04:46 AM
Hi Jonathan,
You are using options.table and option.sys_id in this widget it is always going to return table as incident and sys_id as incident record sys_id so try to give different name while passing the parameters like incident_sysId
You can also use the widget without passing the parameters as while query you can use 'task_sla' table and by using using options.sys_id you will get incident's sysid
And
Use grSLA.getValue('business_duration') instead of grSLA.businessDuration it retrieves the field properly
TAb Configuration:
 Server Script:
 SLA Tab on Incident Record:
 
Hit Helpful if it helps you
Regards,
Uday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2023 05:13 AM - edited ‎10-11-2023 05:14 AM
Thanks a lot Uday !
I've used getDisplayValue() rather than getValue() and it works as I expect!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2025 12:42 AM
Hi @Jonathan Rousse / @Uday Soni05 ,
Can you provide the exact widget script and tab config that you used, I'm having the same scenario and used the above script, but the widget is not getting displayed in the tab.
Regards,
Nimal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2025 03:37 AM
Hi @Uday Soni05 @Jonathan Rousse ,
I have the same scenario, can you please provide the exact HTML and server script that you used? Because the tab is blank with the above script.
Regards,
Nimal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2025 03:39 AM
Hi Jonathan/Uday,
Can you please share the exact HTML and server script that you used in the widget? I have the same scenario and when I used the above script nothing is being displayed in the tab.