Why do some date fields have a little circle that is either green, orange or red?

lucacaputo
Kilo Contributor

When browsing through task lists such as Changes, Releases, etc I've noticed that some date fields have a little circle that seems to indicate some kind of condition.

Does anyone knows how to check what do they monitor and, if possible, how to show that indicator on other fields?

 

Thanks,

Luca

5 REPLIES 5

Aditya Telideva
ServiceNow Employee
ServiceNow Employee

For case, if ticket closed 10 days before scheduled resdate - green,


create a new Field Style with



Value field as -



javascript: var diff = gs.dateDiff(current.closed_at.getDisplayValue(), current.scheduled_resdate.getDisplayValue(), true); if (current.request_state = "4" && diff >= 10) {true;} else {false;}




and style field as



background-color:green;



Similarly, you can create two new Field Styles (search in left navigator: System UI > Field Styles) for below two cases -



if ticket closed 5 days before scheduled resdate - orange


if ticket closed 0 days before or after scheduled resdate - red