- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 05:31 AM
Hi All,
Can someone please help me on below query.
I want to create new flag type for needs attention field on HR case list view of case table, so that whenever the case gets updated by someone other than assigned to person , the flag will turn RED and when the Assigned to person updates it, flag will turn green.
Please help me to achieve this.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 07:38 AM
For the workspace, you can follow this part here: https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/navigation-and-...
Bear in mind that for the new configurable workspace you must connect the record to the "configID Record" of the new workspace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 06:04 AM
Hi @nikhitha24 ,
You can create new styles [ sys_ui_style ] on the field with condition on updated by & assignee to.
Check the exiting record in table [sys_ui_style] and try to replicate the same.
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 06:05 AM
Hi @nikhitha24
You can check with below approach.
1. Create the a check box field for your flag field on HR Case table.
2. Write the business rule on HR Case table such that, whenever the record is updated by the assigned to, set the flag field FALSE. Else set is to TRUE
3. Define the styles for the flag field. Refer https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/navigation-and-...
Regards,
Vasu Cheeli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 09:38 AM
Hi @Vasu ch
I have written the below script, but it is not working.
(function executeRule(current, previous /*null when async*/) {
if (current.assigned_to.changes()) {
current.needs_attention = false;
} else {
current.needs_attention = true;
}
})(current, previous);
Please help me on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 05:10 AM
Hi @nikhitha24
Sorry for the late reply. You can do this without Business rule. At the field dictionary entry record, use calculated value as below
And for the same flag field, define the styles like below:
Output will be like this:
Hope this will help you.
Regards,
Vasu Cheeli