color incident field based on SLA/Aging

bijender1
Tera Contributor

Hi All,

We have a SLA running on our Servicenow, but there is no color coding in the incident field( color coding is on Priority field ).

Can we color Incident field based on SLA and the aging ?

19 REPLIES 19

create a field style on task_sla table.   same way create it for achieved and set the background color green.



find_real_file.png



find_real_file.png


sla.png



another field style with different value condition.



let me know if you have any further question.


Are you looking to base this the SLA, or aging? Those are two different things.



There is a field on the incident table called "Made SLA". You could use that in a field style (similar to what Harsh did with the task_sla table.) The value would be something like




javascript:current.made_sla == true



Give it a try and let us know.


sable
Mega Contributor

Hi Bijender,



Please see my response at the bottom of this article:



Changing a field style based on SLA due date


bijender1
Tera Contributor

Hi Kris,



Thanks a lot this is actually helpful and also worked in breached stage.



Please can you help me in adding color , if stage is <50   green; >=75&&<=100= orange; >=100 breached= red