The color of list view of the 'number' field must be changed according to the SLA.(e.g. green for less than 50%, yellow for 50 to 75% and red for 75%+)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 02:33 AM
The color of list view of the 'number' field must be changed according to the SLA.(e.g. green for less than 50%, yellow for 50 to 75% and red for 75%+)
give example for this scenario.
Thanks
Sanjay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 03:39 AM
You can use any number of conditions, the only thing you need to keep in mind is that the value should return true in order to run your style.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 04:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 04:32 AM
Please copy this code
Script include :
var GlobalFunctions = Class.create();
GlobalFunctions.prototype = Object.extendsObject(AbstractAjaxProcessor,{
getSLAStage : function() {
gs.log("script called");
var stag = '';
var gr = new GlideRecord('task_sla');
gr.addQuery('task', current.sys_id);
gr.query();
if(gr.next())
{
var color;
stag = gr.percentage;
}
return stag; // it will return current stage
}
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 04:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 07:36 PM
Can you please confirm that the SLA is breached in the incidents?