Highlight incident number in the list view for comments update from caller
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 08:53 AM - edited 04-25-2023 08:54 AM
Hi All,
We have a requirement to highlight incident number , when there is update from Caller on the additional comments
the comments is updated when incident is on hold and hold reason is awaiting caller
i have used : javascript: !current.assigned_to.nil() && (current.assigned_to.user_name!=current.sys_updated_by) && (current.sys_updated_by!='system') in style for incident but, its is not working,
also i created custom field(check box-user comment received ) on incident table
and written a Before business as attached, the BR works and update the check box, but its not making the check box false even when changed to other state
Also adding this on the style with script javascript:current.u_user_comments =true; is not working.
Please let me know for any changes on the approach to fulfill this requirement or suggestions.
It will be really helpful
Regards
Karan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 09:57 AM
Hi,
Below can be done, if you want to make number field green while caller is update the ticket.
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 10:31 AM
Hello Sourab ,
Thanks for the reply,
I want to highlight the incident number which were on hold and has on hold reason awaiting caller, post this if there is any update by caller on additional comments.
Those incidents should be highlighted.
No other updates on the ticket should trigger the color highlight.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 10:48 AM
Hi,
Please use below condition in value
javascript:current.sys_updated_by==current.caller_id.user_name &¤t.state==4 && current.hold_reason=1
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 08:14 PM - edited 04-25-2023 08:15 PM
Hello Saurabh,
Thanks for the response
It is not highlighting the number with this condition
This works:javascript:current.sys_updated_by==current.caller_id.user_name
but when we add the other condition:
javascript:current.sys_updated_by==current.caller_id.user_name &¤t.state==4 && current.hold_reason=1
post && the condition is not taking
i also tried with one of the JavaScript query;javascript: !current.assigned_to.nil() && (current.assigned_to.user_name!=current.sys_updated_by) && (current.sys_updated_by!='system')
which seems to be working but when trying to add the state and on hold does not highlight the number