Can you change the style if new comments come in on a list of records?

sbungener
Kilo Contributor

Can you change the style if new comments come in on a list of records?

Say an incident is assigned to a assignee.
OOTB the notification is on that the assignee will receive an email.
We have turned this off because of the many emails. Instead we would like to have the Incident be highlighted or marked with a certain style.

Is that possible? I have been trying to do this by adding an new style, but I do not know how to do this, should be a kind of javascript saying. If the Comments changes then.....

Anyone can help?

7 REPLIES 7

ravi1_tandon
Kilo Guru

I had a similar requirement where incident number field should be highlighted in the list view whenever a ticket is updated by anyone apart from assignee or system.

It is easy ---Go to Field style and create a new style

Table: incident or whatever
Field name: number or any other field
Style: background-color:Tomato; ///I have used Red

Value: javascript:(current.assigned_to.user_name!=current.sys_updated_by && current.sys_updated_by != 'system' && current.incident_state <7);


Hi,

It works great. But there are few incidents assigned to third party like Lexmark. They do not fill assigned to value.
If there is comment from, other than the memebers of the assigned group, incident should change the colour.

Is that possible.

Thanks,
Hema


I have found a case where the following does not appear to work:


javascript:(current.assigned_to.user_name==gs.getUserName()&&current.assigned_to.user_name !=current.sys_updated_by)&&current.incident_state < 7



It does not seem to work to work if an analyst only replies to an email and does not make a work note of additional comment.   I believe it does this because it thinks the email is being sent by another user.   How do I adjust the above string to accomodate for this situation?



Thanks for any help.